Skip to content

Commit f9eaf3c

Browse files
author
Jun Fritz
committed
revert s3 bucket name
1 parent a2dcedf commit f9eaf3c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

template.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,16 @@ Resources:
100100
StreamSpecification:
101101
StreamViewType: NEW_AND_OLD_IMAGES
102102
TableName: !Sub ${AWS::StackName}-Items
103+
FrontendHost:
104+
Type: AWS::S3::Bucket
105+
Properties:
106+
BucketName: !Sub ${AWS::StackName}-frontendh-${AWS::AccountId}
107+
WebsiteConfiguration:
108+
IndexDocument: index.html
103109
deployFrontend:
104110
Type: AWS::Serverless::Function
105111
Properties:
106-
FunctionName: !Sub ${AWS::StackName}-deployFrontEnd
112+
FunctionName: !Sub ${AWS::StackName}-deployFrontend
107113
Description: !Sub
108114
- Stack ${StackTagName} Environment ${EnvironmentTagName} Function ${ResourceName}
109115
- ResourceName: deployFrontend
@@ -116,22 +122,16 @@ Resources:
116122
Policies:
117123
- AWSXrayWriteOnlyAccess
118124
- S3CrudPolicy:
119-
BucketName: !Ref FrontEnd
125+
BucketName: !Ref FrontendHost
120126
Environment:
121127
Variables:
122-
BUCKET_NAME: !Ref FrontEnd
123-
BUCKET_ARN: !GetAtt FrontEnd.Arn
128+
BUCKET_NAME: !Ref FrontendHost
129+
BUCKET_ARN: !GetAtt FrontendHost.Arn
124130
deployFrontendDeployTrigger:
125131
Type: Custom::FunctionDeployTrigger
126132
Properties:
127133
ServiceToken: !GetAtt deployFrontend.Arn
128134
DeploymentTimestamp: !Ref DeploymentTimestamp
129-
FrontEnd:
130-
Type: AWS::S3::Bucket
131-
Properties:
132-
BucketName: !Sub ${AWS::StackName}-frontend-${AWS::AccountId}
133-
WebsiteConfiguration:
134-
IndexDocument: index.html
135135
Parameters:
136136
StackTagName:
137137
Type: String

0 commit comments

Comments
 (0)