-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
google_composer_env with composer-2 image both requires and disallows "zone" argument #15450
Comments
b/295215918 |
I wasn't able to reproduce this issue with a newer Terraform version. I was able to create both v1 and v2 Composer environments without the zone being specified. Please try using a new version of Terraform. |
Which version are you using?
…On Tue, Aug 29, 2023 at 7:57 AM Przemek Więch ***@***.***> wrote:
I wasn't able to reproduce this issue with a newer Terraform version. I
was able to create both v1 and v2 Composer environments without the zone
being specified.
Please try using a new version of Terraform.
—
Reply to this email directly, view it on GitHub
<#15450 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYTBZXTIYXDC5J3ITH5ITTXXXKMBANCNFSM6AAAAAA3KP4XKY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
terraform v1.2.7 |
Closing after inactivity on the issue. Please reopen if needed. |
I am able to reproduce this API error using Terraform by providing the Here is the configuration I used: resource "google_composer_environment" "composer_env" {
provider = google-beta
name = "tf-test-composer-env"
config {
software_config {
image_version = "composer-2.3.5-airflow-2.5.3"
}
node_config {
# zone = "us-central1-a"
network = google_compute_network.test.id
subnetwork = google_compute_subnetwork.test.id
service_account = google_service_account.test.name
}
}
}
resource "google_compute_network" "test" {
name = "composer-test-network"
auto_create_subnetworks = false
}
resource "google_compute_subnetwork" "test" {
name = "composer-test-subnetwork"
ip_cidr_range = "10.2.0.0/16"
region = "us-central1"
network = google_compute_network.test.id
}
resource "google_service_account" "test" {
account_id = "composer-env-account"
display_name = "Test Service Account for Composer Environment"
}
resource "google_project_iam_member" "composer-worker" {
project = "PROJECT_ID"
role = "roles/composer.worker"
member = "serviceAccount:${google_service_account.test.email}"
}
resource "google_service_account_iam_member" "custom_service_account" {
provider = google-beta
service_account_id = google_service_account.test.id
role = "roles/composer.ServiceAgentV2Ext"
member = "serviceAccount:service-PROJECT_NUMBER@cloudcomposer-accounts.iam.gserviceaccount.com"
} |
@melinath This behavior is correct. The |
@PeWu thanks for the additional context! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
0.13.6
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
A Composer V2 environment should've been created
Actual Behavior
If the "zone = " line is commented out, the following error is thrown during
terraform plan
:If the "zone = " line is not commented out, the following is thrown during
terraform apply
:Steps to Reproduce
terraform plan
terraform apply
Important Factoids
Building on GCP Cloud Build as part of a larger project.
References
This issue was previously filed in Jan 2022 but has received no comments: #10848
b/301065930
The text was updated successfully, but these errors were encountered: