Resources
References
The following links provide additional reading material for the Terraform AWS Provider and using Terraform for IaC on AWS.
-
Terraform AWS Provider
(HashiCorp documentation) -
Terraform modules for AWS services
(Terraform Registry) -
The AWS and HashiCorp Partnership
(HashiCorp blog post) -
Dynamic Credentials with the AWS Provider
(HCP Terraform documentation) -
DynamoDB State Locking
(Terraform documentation) -
Enforce Policy with Sentinel
(Terraform documentation)
Tools
The following tools help improve code quality and automation of Terraform configurations on AWS, as recommended in this best practices guide.
Code quality:
-
Checkov
: Scans Terraform code to identify misconfigurations before deployment. -
TFLint
: Identifies possible errors, deprecated syntax, and unused declarations. This linter can also enforce AWS best practices and naming conventions. -
terraform-docs
: Generates documentation from Terraform modules in various output formats.
Automation tools:
-
HCP Terraform
: Helps teams version, collaborate, and build Terraform workflows with policy checks and approval gates. -
Atlantis
: An open source Terraform pull request automation tool for validating code changes. -
CDK for Terraform
: A framework that lets you use familiar languages such as TypeScript, Python, Java, C#, and Go instead of HashiCorp Configuration Language (HCL) to define, provision, and test your Terraform infrastructure as code.