Skip to content

Commit 3621f93

Browse files
Modified 1 node:
Deleted cdn node CloudFront CDN Distribution
1 parent 676502a commit 3621f93

File tree

1 file changed

+1
-72
lines changed

1 file changed

+1
-72
lines changed

template.yaml

+1-72
Original file line numberDiff line numberDiff line change
@@ -102,66 +102,6 @@ Resources:
102102
ErrorDocument: index.html
103103
Metadata:
104104
StackeryName: S3 Website Hosting
105-
cdn13F22789:
106-
Type: AWS::CloudFront::Distribution
107-
Properties:
108-
DistributionConfig:
109-
Aliases:
110-
- !Sub cdn13f22789.${StackeryDeploymentNamespace}.stackery-stacks.io
111-
DefaultCacheBehavior:
112-
Compress: true
113-
ForwardedValues:
114-
Cookies:
115-
Forward: none
116-
QueryString: false
117-
TargetOriginId: StackeryCDN
118-
ViewerProtocolPolicy: redirect-to-https
119-
DefaultRootObject: index.html
120-
Enabled: true
121-
PriceClass: PriceClass_100
122-
ViewerCertificate:
123-
AcmCertificateArn: !Ref cdn13F22789SSLCertificate
124-
SslSupportMethod: sni-only
125-
Origins:
126-
- DomainName: !GetAtt objectStore24B2BE91.DomainName
127-
Id: StackeryCDN
128-
S3OriginConfig:
129-
OriginAccessIdentity: !Sub origin-access-identity/cloudfront/${cdn13F22789OriginAccessIdentity}
130-
Metadata:
131-
StackeryName: CloudFront CDN Distribution
132-
cdn13F22789SSLCertificate:
133-
Type: Custom::StackeryUsEast1SSLCertificate
134-
Properties:
135-
ServiceToken: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:stackery-agent-commander
136-
DomainName: !Sub cdn13f22789.${StackeryDeploymentNamespace}.stackery-stacks.io
137-
DomainValidationOptions:
138-
- DomainName: !Sub cdn13f22789.${StackeryDeploymentNamespace}.stackery-stacks.io
139-
ValidationDomain: stackery-stacks.io
140-
cdn13F22789StackeryStacksDomain:
141-
Type: Custom::StackeryStacksDomain
142-
Properties:
143-
ServiceToken: !Sub arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:stackery-agent-commander
144-
SubdomainName: !Sub cdn13f22789.${StackeryDeploymentNamespace}
145-
CName: !GetAtt cdn13F22789.DomainName
146-
Condition: cdn13F22789StackeryStacksDomain
147-
cdn13F22789OriginAccessIdentity:
148-
Type: AWS::CloudFront::CloudFrontOriginAccessIdentity
149-
Properties:
150-
CloudFrontOriginAccessIdentityConfig:
151-
Comment: Stackery
152-
cdn13F22789BucketPolicy:
153-
Type: AWS::S3::BucketPolicy
154-
Properties:
155-
Bucket: !Ref objectStore24B2BE91
156-
PolicyDocument:
157-
Statement:
158-
- Effect: Allow
159-
Principal:
160-
AWS: !Sub arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity ${cdn13F22789OriginAccessIdentity}
161-
Action: s3:GetObject
162-
Resource: !Sub
163-
- ${BucketArn}/*
164-
- BucketArn: !GetAtt objectStore24B2BE91.Arn
165105
TriggerDeployFrontEndOnDeploy:
166106
Type: Custom::TriggerDeployFrontEndOnDeploy
167107
Properties:
@@ -176,17 +116,6 @@ Parameters:
176116
StackeryEnvironmentAPIGatewayStageName:
177117
Type: String
178118
Description: Environment name used for API Gateway Stage names (injected by Stackery at deployment time)
179-
StackeryDeploymentNamespace:
180-
Type: String
181-
Description: Stackery Deployment Namespace (injected by Stackery at deployment time)
182119
Metadata:
183120
StackeryErrorsTargets:
184-
function8E6C5467: {}
185-
Conditions:
186-
cdn13F22789StackeryStacksDomain: !Or
187-
- !Equals
188-
- 'false'
189-
- 'false'
190-
- !Equals
191-
- 'false'
192-
- ''
121+
function8E6C5467: {}

0 commit comments

Comments
 (0)