Skip to content

Commit f06d86a

Browse files
authored
Remove partial_parse.msgpack synchronization from Terraform Airflow Apply. (#4108)
Error: Provider produced inconsistent final plan When expanding the plan for google_storage_bucket_object.calitp-staging-composer-partial_parse to include new values learned so far during apply, provider "registry.terraform.io/hashicorp/google" produced an invalid new value for .content: inconsistent values for sensitive attribute.
1 parent 096f6ef commit f06d86a

File tree

5 files changed

+1
-29
lines changed

5 files changed

+1
-29
lines changed

.github/workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The GCP Composer deployment of Airflow [uploads composer, warehouse, and dbt art
3333

3434
* Warehouse files: `dbt_project.yml`, `packages.yml`, `profiles.yml`, and all files from `macros/`, `models/`, `seeds/`, and `tests/` folders.
3535

36-
* dbt artifact files: `manifest.json`, `catalog.json`, `index.html`, and `partial_parse.msgpack`.
36+
* dbt artifact files: `manifest.json`, `catalog.json`, and `index.html`.
3737

3838

3939
For more details, check [iac/cal-itp-data-infra/airflow/us/variables.tf](https://github.com/cal-itp/data-infra/blob/main/iac/cal-itp-data-infra/airflow/us/variables.tf).

iac/cal-itp-data-infra-staging/airflow/us/storage_bucket_object.tf

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,3 @@ resource "google_storage_bucket_object" "calitp-staging-composer-index" {
3232
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-staging-composer_id
3333
content_type = "text/html; charset=utf-8"
3434
}
35-
36-
resource "google_storage_bucket_object" "calitp-staging-composer-partial_parse" {
37-
depends_on = [data.google_storage_bucket_object_content.calitp-staging-dbt-partial_parse]
38-
name = "data/warehouse/target/partial_parse.msgpack"
39-
source_md5hash = data.google_storage_bucket_object_content.calitp-staging-dbt-partial_parse.md5hash
40-
content = data.google_storage_bucket_object_content.calitp-staging-dbt-partial_parse.content
41-
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-staging-composer_id
42-
content_type = "application/vnd.msgpack"
43-
}

iac/cal-itp-data-infra-staging/airflow/us/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ data "google_storage_bucket_object_content" "calitp-staging-dbt-index" {
3232
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-staging-dbt-docs_name
3333
}
3434

35-
data "google_storage_bucket_object_content" "calitp-staging-dbt-partial_parse" {
36-
name = "partial_parse.msgpack"
37-
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-staging-dbt-docs_name
38-
}
39-
4035
data "terraform_remote_state" "networks" {
4136
backend = "gcs"
4237

iac/cal-itp-data-infra/airflow/us/storage_bucket_object.tf

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,3 @@ resource "google_storage_bucket_object" "calitp-composer-index" {
3232
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-composer_name
3333
content_type = "text/html; charset=utf-8"
3434
}
35-
36-
resource "google_storage_bucket_object" "calitp-composer-partial_parse" {
37-
depends_on = [data.google_storage_bucket_object_content.calitp-dbt-partial_parse]
38-
name = "data/warehouse/target/partial_parse.msgpack"
39-
content = data.google_storage_bucket_object_content.calitp-dbt-partial_parse.content
40-
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-composer_name
41-
source_md5hash = data.google_storage_bucket_object_content.calitp-dbt-partial_parse.md5hash
42-
content_type = "application/vnd.msgpack"
43-
}

iac/cal-itp-data-infra/airflow/us/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ data "google_storage_bucket_object_content" "calitp-dbt-index" {
3232
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-dbt-docs_name
3333
}
3434

35-
data "google_storage_bucket_object_content" "calitp-dbt-partial_parse" {
36-
name = "partial_parse.msgpack"
37-
bucket = data.terraform_remote_state.gcs.outputs.google_storage_bucket_calitp-dbt-docs_name
38-
}
39-
4035
data "terraform_remote_state" "networks" {
4136
backend = "gcs"
4237

0 commit comments

Comments
 (0)