Provider versioning
- When there’s a MAJOR change, you can pin like
>= 4.47.0, < 5.0.0
to safely use all the newest features in v4 while avoiding v5 breakages. If you want to move to v5, you’d explicitly set>= 5.0.0, < 6.0.0
(or~> 5.0
) and refactor for breaking changes.
Local Testing
- You can quickly test the Terraform codes against mock cloud API endpoints without waiting for actual infra to spin up with localstack
- Refer to Test AWS infrastructure by using LocalStack and Terraform Tests - AWS Prescriptive Guidance for a demo