Skip to content

Commit

Permalink
CloudFront distribution for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stulacy committed Dec 1, 2023
1 parent 284ae36 commit c2e2ac9
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions cloudformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,48 @@
"SolutionStackName": "64bit Amazon Linux 2023 v4.0.0 running Docker"
}
},
"MCMDevCloudFront": {
"Type": "AWS::CloudFront::Distribution",
"DependsOn": "MCMProdEnvironment",
"Properties": {
"DistributionConfig": {
"Origins": [
{
"DomainName": {
"Fn::GetAtt": [
"MCMProdEnvironment",
"EndpointURL"
]
},
"Id": "MCMDevOrigin",
"CustomOriginConfig": {
"HTTPPort": "80",
"HTTPSPort": "443",
"OriginProtocolPolicy": "match-viewer"
}
}
],
"Enabled": "true",
"DefaultCacheBehavior": {
"AllowedMethods": [
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"PATCH",
"POST",
"PUT"
],
"TargetOriginId": "MCMDevOrigin",
"ViewerProtocolPolicy": "redirect-to-https"
},
"PriceClass":"PriceClass_All",
"ViewerCertificate": {
"CloudFrontDefaultCertificate": "true"
}
}
}
},
"MyInstanceRole": {
"Type": "AWS::IAM::Role",
"Properties": {
Expand Down

0 comments on commit c2e2ac9

Please sign in to comment.