Infrastructure as code

A step of the Cloud application tree on Gradus, in the Build & ship area: Config, lint, releases, IaC.

Describe every cloud resource in code (Terraform, Pulumi or your cloud's native tool) so environments can be rebuilt from scratch.

Usually comes after: Project structure & config.

Leads to: Staging & production, GCP landing zone, AWS landing zone.

Prompt for your AI assistant

Introduce infrastructure as code for this project's cloud resources using Terraform or an equivalent, starting with the resources the first deploy created. Run a plan on every pull request and apply it from CI after merge. Let the deploy workflow own the running image and its traffic, so an apply never undoes a release.

This is https://gradus.kazet.blog/tree/cloud-application/step/infrastructure-as-code as plain HTML. In a browser the page also lets you mark the step forged and copy a message for your AI assistant.