diff --git a/mmv1/products/apigateway/api.yaml b/mmv1/products/apigateway/api.yaml index 154dfae87c08..9af8cbb32183 100644 --- a/mmv1/products/apigateway/api.yaml +++ b/mmv1/products/apigateway/api.yaml @@ -152,7 +152,7 @@ objects: required: true description: | Google Cloud IAM service account used to sign OIDC tokens for backends that have authentication configured - (https://cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services.configs#backend). + (https://cloud.google.com/service-infrastructure/docs/service-management/reference/rest/v1/services.configs#backend). - !ruby/object:Api::Type::Array name: 'openapiDocuments' description: | @@ -219,9 +219,9 @@ objects: - !ruby/object:Api::Type::String name: 'apiConfig' required: true - input: true description: | - Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig} + Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}. + When changing api configs please ensure the new config is a new resource and the lifecycle rule `create_before_destroy` is set. - !ruby/object:Api::Type::String name: 'defaultHostname' output: true diff --git a/mmv1/third_party/terraform/tests/resource_api_gateway_gateway_test.go.erb b/mmv1/third_party/terraform/tests/resource_api_gateway_gateway_test.go.erb index 7a2ebe6158b8..fe2db6a7b1f3 100644 --- a/mmv1/third_party/terraform/tests/resource_api_gateway_gateway_test.go.erb +++ b/mmv1/third_party/terraform/tests/resource_api_gateway_gateway_test.go.erb @@ -44,6 +44,9 @@ resource "google_api_gateway_api_config" "api_gw" { provider = google-beta api = google_api_gateway_api.api_gw.api_id api_config_id = "tf-test-api-gw%{random_suffix}" + lifecycle { + create_before_destroy = true + } openapi_documents { document {