Skip to content

dxm/terraform-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

IAC examples with terraform.

Prepare

Setup buckets for state files which are needed to run from github.

# Example (terraform-state-$project-$environment)
aws s3 mb s3://terraform-state-php-dev
aws s3api put-bucket-versioning --bucket terraform-state-php-dev --versioning-configuration Status=Enabled

# no longer needed since the s3 provider can now create lock files with s3 partial write
aws dynamodb create-table \
  --table-name terraform-lock-${project}-${env} \
  --attribute-definitions AttributeName=LockID,AttributeType=S \
  --key-schema AttributeName=LockID,KeyType=HASH \
  --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages