HomePhabricator
Diffusion Comm 39966ec7ebcf

[services][terraform] Import shared resources

Description

[services][terraform] Import shared resources

Summary:
When trying to sync remote state with local terraform, I discovered several inconsistencies bethween them.
I needed to make adjustments in the terraform to match local state.
Introduced a is_dev variable to switch betweeen these two.

I don't know which resources are "correct" so I kept the remote state untouched.
Cc @jon, @varun

Depends on D8568

Test Plan:
terraform plan in both dev/ and remote/ gives no changes after importing resources.

Used this imports file: imports.tf

note that I use import blocks which require Terraform 1.5 (the Nix one is 1.3)

Reviewers: jon, varun, michal

Reviewed By: jon, varun

Subscribers: ashoat, tomek, varun, jon

Differential Revision: https://phab.comm.dev/D8570

Details

Provenance
bartekAuthored on Jul 13 2023, 11:15 AM
Reviewer
jon
Differential Revision
D8570: [services][terraform] Import shared resources
Parents
rCOMMdbe9b5d25e01: [services][terraform] Create remote config
Branches
Unknown
Tags
Unknown