Use terraform to manage my GitHub repositories.
- terraform >= 1.0.0
- aws-cli >= 2.0.0
- git >= 2.9.0
- prepare env, make sure all env loaded
export AWS_PROFILE=YOUR_AWS_PROFILE
export TF_VAR_token=YOUR_GITHUB_TOKEN
export TF_VAR_aws_region=AWS_REGION
- my env
export AWS_PROFILE=ethan.yeh
export TF_VAR_token=$(bw get item 9dcefa5f-d970-4993-bf4e-aed200a36949 | jq -r '.fields[0].value')
export TF_VAR_aws_region=ap-northeast-1
- init project
make init
terraform init -backend-config "region=$TF_VAR_aws_region"
- apply changes
terraform apply
Ethan Yeh
- GitHub: EthanYeh
- integrate renovate
- use s3 to manage state
- add Git Hooks
- add Makefile
- integrate GitHub Actions