Skill 3.1.6
Use and manage third-party tools to automate resource deployment (for example, Terraform, Git)
Key Concepts
Terraform uses the AWS provider to create resources from HCL configuration. terraform init downloads providers and configures the backend, plan shows changes and apply makes them. State, which maps configuration to real resources, should live in a remote S3 backend with versioning, encryption and state locking (S3 native lock files; DynamoDB-based locking is deprecated). terraform import or import blocks adopt existing resources, and drift appears as plan differences.
Git provides version history, branches and pull request review for infrastructure code. CloudFormation Git sync deploys a stack automatically when a template and deployment file change in a connected GitHub, GitLab or Bitbucket repository, using AWS CodeConnections.