Skip to content

Commit

Permalink
Update GCS IAM membership in Terraform scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrite committed Feb 18, 2025
1 parent 86f6821 commit 2aa1c59
Show file tree
Hide file tree
Showing 4 changed files with 389 additions and 353 deletions.
36 changes: 36 additions & 0 deletions iac/README.md
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
```
2 changes: 1 addition & 1 deletion iac/cal-itp-data-infra/gcs/us/storage_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ resource "google_storage_bucket" "tfer--calitp-map-tiles" {
max_age_seconds = "300"
method = ["GET", "HEAD"]
origin = ["*"]
response_header = ["etag", "range"]
response_header = ["range", "etag"]
}

default_event_based_hold = "false"
Expand Down
Loading

0 comments on commit 2aa1c59

Please sign in to comment.