Skip to Content
Terraform in Action
book

Terraform in Action

by Scott Winkler
July 2021
Intermediate to advanced
408 pages
9h 51m
English
Manning Publications
Content preview from Terraform in Action

10 Testing and refactoring

This chapter covers

  • Tainting and rotating AWS access keys provisioned by Terraform
  • Refactoring module expansions
  • Migrating state with terraform mv and terraform state
  • Importing existing resources with terraform import
  • Testing IaC with terraform-exec

The ancient Greek philosopher Heraclitus is famous for positing that “Life is flux.” In other words, change is inevitable, and to resist change is to resist the essence of our existence. Perhaps nowhere is change more pronounced than in the software industry. Due to changing customer requirements and shifting market conditions, software is guaranteed to change. If not actively maintained, software degrades over time. Refactoring and testing are steps that developers ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Terraform in Action

Terraform in Action

Scott Winkler

Publisher Resources

ISBN: 9781617296895Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link