GoogleCloudPlatform / cloud-foundation-fabric

End-to-end modular samples and landing zones toolkit for Terraform on GCP.
Apache License 2.0
1.42k stars 807 forks source link

Apigee module can't create new environments type - only base #1772

Closed marcinkubica closed 9 months ago

marcinkubica commented 9 months ago

v27.0.0

Hello!

Seems environment type (Base, Intermediate, Comprehensive) is not supported. As result env needs to be created manually and imported to tf. Otherwise it creates Base type.

t state show 'module.apigee.google_apigee_environment.environments["prod"]'            
# module.apigee.google_apigee_environment.environments["prod"]:
resource "google_apigee_environment" "environments" {
    api_proxy_type  = "PROGRAMMABLE"
    deployment_type = "PROXY"
    description     = "Prod GKE"
    display_name    = "Production"
    id              = "organizations/my-org/environments/prod"
    name            = "prod"
    org_id          = "organizations/my-org"

    timeouts {}
}
apichick commented 9 months ago

Unfortunately the google terraform provider google_apigee_environment does not yet support passing that.

ludoo commented 9 months ago

Thanks Miren, we can close this and reopen once support int he provider is available.

fpreli commented 9 months ago

Just to add more context, an official request has been already opened

https://github.com/hashicorp/terraform-provider-google/issues/16142