-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GCS IAM membership in Terraform scripts
- Loading branch information
Showing
4 changed files
with
389 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
# Infrastructure as Code (IaC) | ||
|
||
This subdirectory contains the Terraform configuration for Google Cloud. | ||
|
||
|
||
## Local Development Setup | ||
|
||
Install Terraform via ASDF: | ||
|
||
```bash | ||
$ asdf plugin-add terraform https://github.com/asdf-community/asdf-hashicorp.git | ||
$ asdf install terraform 1.10.5 | ||
$ asdf global terraform 1.10.5 | ||
``` | ||
|
||
Create the `iac/provider.tf` file containing the following provider definition: | ||
|
||
```tf | ||
terraform { | ||
required_providers { | ||
google = { | ||
version = "~> 4.59.0" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Initialize Terraform: | ||
|
||
```bash | ||
$ terraform init | ||
``` | ||
|
||
Run `terraform init` against each nested resource: | ||
|
||
```bash | ||
$ find . -name 'terraform.tfstate' | xargs dirname | xargs -I'{}' terraform -chd | ||
ir='{}' init | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.