This terraform module represents a DNS alias that can be used for automatic redirection. Without an explicit redirection url, the target bucket will be configured for web hosting, containing an index.html with automatic redirection via JS to the project homepage.
- terraform
- Free Terraform Enterprise Account for accessing and locking the cluster environment state
- Let the Terraform Enterprise admin add you to the organisation
edithcare
Please see the variables.tf and output.tf respectively.
- EC-3217 add tag
managed-by
- EC-3216 src/index.html contains the absolute URL of the project. This should be replaced by a template.
- EC-2293 [CRITICAL] S3.2 S3 buckets should prohibit public read access
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::sectest.edith.care/*"
}
]
}
{
"Version": "2008-10-17",
"Id": "PolicyForCloudFrontPrivateContent",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity E2VEE0PSS7J353"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::sectest.edith.care/*"
}
]
}