You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
578 B
Markdown

# terraform-live-example
Example of a Terraform repo for managing infrastructure
## Atlantis Setup
1. Setup terraform state backend (S3 + DynamoDB)
```
aws cloudformation deploy \
--stack-name missionsa-atlantis-backend \
--template-file ./terraform-backend-cft.yaml
```
2. Setup secrets
```
aws ssm put-parameter \
--name "github_user" \
--type "String" \
--value "myusername"
aws ssm put-parameter \
--name "github_token" \
--type "String" \
--value "myusertoken"
```
3. Terraform init and apply
```
terraform init
terraform apply
```