Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 693 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 693 Bytes

terraform workspace show terraform workspace new dev terraform workspace select dev

terraform plan -var-file=dev.tfvars terraform apply -var-file=dev.tfvars --auto-approve terraform destroy -var-file=dev.tfvars --auto-approve

terraform plan -var-file=prod.tfvars terraform apply -var-file=prod.tfvars --auto-approve terraform destroy -var-file=prod.tfvars --auto-approve

Creating dynamodb:

aws dynamodb create-table
--table-name tfstate-lock-graphnode-ecs
--attribute-definitions AttributeName=LockID,AttributeType=S
--key-schema AttributeName=LockID,KeyType=HASH
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
--region us-east-1

terraform init