Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.

Latest commit

 

History

History
53 lines (45 loc) · 2.24 KB

File metadata and controls

53 lines (45 loc) · 2.24 KB

Terraform DNS Alias

Terraform GitHub Actions

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.

requirements

inputs and outputs

Please see the variables.tf and output.tf respectively.

TODO

{
    "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/*"
        }
    ]
}