forseti-security / terraform-google-forseti

A Terraform module for installing Forseti on GCP
Apache License 2.0
132 stars 127 forks source link

Terraform is failing to upload rules and config files to GCS buckets #3870 #633

Closed jralmaraz closed 3 years ago

jralmaraz commented 3 years ago

[Uploading TRACE.log…]() While running the install_simple example from terraform-google-forseti the apply currently fails with different 400 errors while uploading config files and rules to the server's bucket.

5.2.2

client_gcs, rules, server_config

Attached full terraform on TRACE logs.

Terraform

jralmaraz commented 3 years ago

To confirm the files were not corrupted, I've used gsutil to upload them and it works:

`03323a28d2e0:/working/forseti/terraform-google-forseti/modules/rules/templates/rules$ gsutil -m cp * gs://forseti-server-0e20826c/rules Copying file://cloudsql_rules.yaml [Content-Type=application/octet-stream]... Copying file://audit_logging_rules.yaml [Content-Type=application/octet-stream]... Copying file://bigquery_rules.yaml [Content-Type=application/octet-stream]... Copying file://enabled_apis_rules.yaml [Content-Type=application/octet-stream]... Copying file://blacklist_rules.yaml [Content-Type=application/octet-stream]... Copying file://external_project_access_rules.yaml [Content-Type=application/octet-stream]... Copying file://firewall_rules.yaml [Content-Type=application/octet-stream]... Copying file://bucket_rules.yaml [Content-Type=application/octet-stream]... Copying file://group_rules.yaml [Content-Type=application/octet-stream]... Copying file://groups_settings_rules.yaml [Content-Type=application/octet-stream]... Copying file://forwarding_rules.yaml [Content-Type=application/octet-stream]... Copying file://iam_rules.yaml [Content-Type=application/octet-stream]... Copying file://ke_scanner_rules.yaml [Content-Type=application/octet-stream]... Copying file://iap_rules.yaml [Content-Type=application/octet-stream]... Copying file://lien_rules.yaml [Content-Type=application/octet-stream]... Copying file://ke_rules.yaml [Content-Type=application/octet-stream]... Copying file://instance_network_interface_rules.yaml [Content-Type=application/octet-stream]... Copying file://kms_rules.yaml [Content-Type=application/octet-stream]... Copying file://location_rules.yaml [Content-Type=application/octet-stream]... Copying file://log_sink_rules.yaml [Content-Type=application/octet-stream]... Copying file://resource_rules.yaml [Content-Type=application/octet-stream]... Copying file://retention_rules.yaml [Content-Type=application/octet-stream]... Copying file://service_account_key_rules.yaml [Content-Type=application/octet-stream]... Copying file://role_rules.yaml [Content-Type=application/octet-stream]...

[24/24 files][ 45.2 KiB/ 45.2 KiB] 100% Done Operation completed over 24 objects/45.2 KiB. `

jralmaraz commented 3 years ago

TRACE.log

jralmaraz commented 3 years ago

Found out this issue was caused by proxy.