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

Terraform DNS Alias Module

License

Notifications You must be signed in to change notification settings

edithcare/terraform-aws-dnsalias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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