File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,16 @@ Resources:
100
100
StreamSpecification :
101
101
StreamViewType : NEW_AND_OLD_IMAGES
102
102
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
103
109
deployFrontend :
104
110
Type : AWS::Serverless::Function
105
111
Properties :
106
- FunctionName : !Sub ${AWS::StackName}-deployFrontEnd
112
+ FunctionName : !Sub ${AWS::StackName}-deployFrontend
107
113
Description : !Sub
108
114
- Stack ${StackTagName} Environment ${EnvironmentTagName} Function ${ResourceName}
109
115
- ResourceName : deployFrontend
@@ -116,22 +122,16 @@ Resources:
116
122
Policies :
117
123
- AWSXrayWriteOnlyAccess
118
124
- S3CrudPolicy :
119
- BucketName : !Ref FrontEnd
125
+ BucketName : !Ref FrontendHost
120
126
Environment :
121
127
Variables :
122
- BUCKET_NAME : !Ref FrontEnd
123
- BUCKET_ARN : !GetAtt FrontEnd .Arn
128
+ BUCKET_NAME : !Ref FrontendHost
129
+ BUCKET_ARN : !GetAtt FrontendHost .Arn
124
130
deployFrontendDeployTrigger :
125
131
Type : Custom::FunctionDeployTrigger
126
132
Properties :
127
133
ServiceToken : !GetAtt deployFrontend.Arn
128
134
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
135
135
Parameters :
136
136
StackTagName :
137
137
Type : String
You can’t perform that action at this time.
0 commit comments