Using Terraform to provision infrastructure on AWS.
Using VS Code Remote Containers.
- Install VS Code Remote Container Extensions
- Create new IAM User
- Grant some IAM Roles. For examples:
IAMFullAccess
,EC2FullAccess
,S3FullAccess
- Generate new
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
- Create File:
.env
based on.env.example
- Open AWS S3 Dashboard, then create a new S3 Bucket manually
- Change to
infra
directory:cd infra
- Create File:
config.s3.tfbackend
based onconfig.s3.tfbackend.example
Create File: terraform.tfvars
based on terraform.tfvars.example
- Select
Remote-Containers: Open Folder in Container
- Change to
infra
directory:cd infra
- Execute terraform commands
terraform.sh init
terraform.sh plan
terraform.sh apply
terraform.sh destroy
- Run
./scripts/setup.sh
to install GitHub CLI and authorize - Run
./scripts/set_secrets.sh
to register new GitHub Actions Secrets by reading.env
file