- Terraform: AWS: S3: Static Website Hosting
- GH Security
- action script
- tf gh actions
- changed files
- blog
- blog
- pr API trigger - gh issue
- pr API trigger- Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests
- action download artifact
- set-cache-control-for-entire-s3-bucket-automatically-using-bucket-policies
- mime types spec
- blog - mime types w/ external data source/tool
- gh - s3 object module
- gh - s3 object module
- blog - cache control
aws_assume_role
export CLOUDFLARE_API_TOKEN=$(pass Cloud/cloudflare/Terraform_Token)
export CLOUDFLARE_ACCOUNT_ID=$(pass Cloud/cloudflare/account_id)
cd aws
terraform init
terraform apply
terraform output -raw site_domain_root > ../site_domain_root.txt
terraform output -raw site_domain_dev > ../site_domain_dev.txt
cd ..
aws s3 cp website/ s3://$(cat site_domain_root.txt)/ --recursive --profile terraform-admin
aws s3 cp shortpoet_site/ s3://$(cat site_domain_dev.txt)/ --recursive --profile terraform-admin
git tag -a v0.0.1 -m "first release"
git push --follow-tags
git tag -d v0.0.1
git push --delete origin v0.0.1
No requirements.
No providers.
No modules.
No resources.
No inputs.
No outputs.