straight-fireman-55591
03/16/2023, 12:18 PMname: Vega
runtime: yaml
resources:
pulumi-api-gw-api:
type: gcp:apigateway:Api
properties:
apiId: api-gw-dev-id
pulumi-api-gw-service-account:
type: gcp:serviceAccount:Account
properties:
accountId: pulumi-api-gw-service-account
displayName: pulumi-api-gw-service-account
pulumi-api-gw-config:
type: gcp:apigateway:ApiConfig
properties:
api: ${pulumi-api-gw-api.id}
apiConfigId: pulumi-api-gw-config1
openapiDocuments:
document:
path: spec.yaml
• type: gcp:apigateway:Api - is being created
• type: gcp😒erviceAccount:Account - is being created
• type: gcp:apigateway:ApiConfig - is not being created with below error:
Diagnostics:
pulumi:pulumi:Stack (Vega-dev):
Error: gcp:apigateway/apiConfig:ApiConfig is not assignable from {api: string, apiConfigId: string, openapiDocuments: {document: {path: string}}}
on Pulumi.yaml line 24:
24: document:
25: path: spec.yaml
Cannot assign '{api: string, apiConfigId: string, openapiDocuments: {document: {path: string}}}' to 'gcp:apigateway/apiConfig:ApiConfig':
openapiDocuments: Cannot assign '{document: {path: string}}' to 'List<gcp:apigateway/ApiConfigOpenapiDocument:ApiConfigOpenapiDocument>'
I'm confused of how to inject the api gw swagger here.