hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.79k stars 442 forks source link

cdktf bootstrap command #891

Open jsteinich opened 2 years ago

jsteinich commented 2 years ago

Community Note

Description

Inspired by a slack thread, the idea is to create the necessary resources to store Terraform state files / locks in remote backends. I.e. for S3Backend, an S3 bucket and DynamoDB table and associated permissions would be setup.

Perhaps that configuration could be remembered and then newly initialized projects inherit the backend configuration settings.

References

https://cdk-dev.slack.com/archives/C017XMM5L7N/p1627938410005400

danieldreier commented 2 years ago

I'm categorizing this as x-large because doing a seamless bootstrap that provisions state storage and then moves state into it is a substantial project. It's not an immediate priority for the team in the next few months but we'd be open to designing this together if you or another external contributor wants to build this kind of workflow.