terraform-cdk icon indicating copy to clipboard operation
terraform-cdk copied to clipboard

Terraform CDK Doesnot allow to create GCP APiGateway

Open bmanoj-aws opened this issue 3 years ago • 4 comments

Hi Team,

Trying to create an apigateway using terraform cdk in GCP, but while trying to import the module from @cdktf/provider-google it doesnot show any module, doesnot terraform cdk support creation on apigateway in Google Cloud. gcptf_apigw_error

bmanoj-aws avatar Aug 01 '22 07:08 bmanoj-aws

I have imported the beta module of cdktf and was able to import apigw but not able to view the module parameters as the webpage loads page not found.

gcptf_apigw_beta_error gcptf_apigw_beta_module_page_error

bmanoj-aws avatar Aug 01 '22 08:08 bmanoj-aws

Resources only being in the beta version of the provider is a general property of the Google Terraform provider. I don't know the exact details, but they have no resources incubate in the beta provider for some time before moving to the main provider.

The documentation link being wrong is something that will need to be looked into. In the meantime, here's the correct link: https://registry.terraform.io/providers/hashicorp/google-beta/latest/docs/resources/api_gateway_api

jsteinich avatar Aug 02 '22 04:08 jsteinich

Hi Jon,

Thanks for the response i started using the shared document , but i am not able to create the configuration for the apigw, not able to add the openapigwdocuments parameters and grpc services as it displays no value exists in scope for that property.

Attaching the screenshots below

gcptf_apigw_beta_module1_error gcptf_apigw_beta_module2_error

bmanoj-aws avatar Aug 02 '22 11:08 bmanoj-aws

Looks like an unfortunate naming collision. There are both GoogleApiGatewayApiConfigA and GoogleApiGatewayApiConfig. The former is used to configure google_api_gateway_api_config and the later google_api_gateway_api.

jsteinich avatar Aug 02 '22 22:08 jsteinich

This looks like the question is answered, closing it for now :)

DanielMSchmidt avatar Aug 12 '22 11:08 DanielMSchmidt

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've 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.

github-actions[bot] avatar Nov 24 '22 01:11 github-actions[bot]