Closed assertnotnull closed 11 months ago
@assertnotnull what do you see if you provide api_id instead?
resource "google_api_gateway_api_config" "api_config" {
provider = google-beta
api = google_api_gateway_api.gateway.api_id <------- replace id with api_id?
api_config_id = "testconfig"
openapi_documents {
document {
path = "api.yaml"
contents = base64encode(local.apispec)
}
}
lifecycle {
create_before_destroy = true
}
}
It works thanks a lot!
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
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
v1.6.3
Affected Resource(s)
google_api_gateway_api_config
Terraform Configuration Files
Debug Output
https://gist.github.com/assertnotnull/f10ac82312ac62893ac3e33996c8ea9e
Expected Behavior
Create the configs
Actual Behavior
An 404 error:
Steps to Reproduce
terraform apply
Notes
The URL seems wrong when looking at the doc https://cloud.google.com/api-gateway/docs/reference/rest/v1beta/projects.locations.apis.configs/create