Terraform
Terraform
[[1build]] happens to use Terraform Cloud
Providers
Providers can be set on the downstream modules by using the following
providers = {
aws.target = aws.uw2
aws.primary = aws.uw2
}Backend
The Terraform state should not be stored locally and ideally should have a remote backend
Below is an example with AWS using S3 and DynamoDB for locking
[[AWS]]
IAM Policies
AWS policies can be a bit fickle and should be coupled with IAM policy documents to get the most use out of them
Flags
Parallelism
Article on using parallelism to speed things up: link
Parallelism can be increased from its default value of 10 to greatly reduce wait times
In order to avoid having to pass in the flag every time, an environment variable can be used instead
Lifecycle
Ignore specific changes
Last updated