quaint-spring-93350
09/29/2023, 10:09 AMurn
in OVH schema which, as I believe, clashes with Pulumi's URN. Here's an example: https://www.pulumi.com/registry/packages/ovh/api-docs/cloudproject/project/ Is this a genuine naming clash or is OVH urn
unified with Pulumi's URN somehow? We found out about this when our codegen exploded on naming clash on OVH package.thankful-match-46035
09/29/2023, 11:57 AMlimited-rainbow-51650
09/29/2023, 12:15 PMovh_cloud_project
resource has a property urn
.
https://github.com/ovh/terraform-provider-ovh/blob/master/ovh/resource_cloud_project.go#L44-L47
The Pulumi resource model adds urn
property consistently to each resource type. In this case, the TF ovh_cloud_project.urn
property needs to be remapped to another name to not conflict with Pulumi's urn
property.
@enough-garden-22763 what is the correct code snippet that needs to be added to the resources.go
file to have this property remapped/renamed?thankful-match-46035
09/29/2023, 12:16 PMquaint-spring-93350
09/29/2023, 12:16 PM"urn"
limited-rainbow-51650
09/29/2023, 12:17 PMschema.json
file is generated from the resources.go
since this is a TF-bridged provider. If we fix resources.go
and regenerate, it should be ok in the regenerated schema.json
.quaint-spring-93350
09/29/2023, 12:17 PMthankful-match-46035
09/29/2023, 12:51 PMlimited-rainbow-51650
09/29/2023, 12:53 PMenough-garden-22763
09/29/2023, 12:54 PM"aws_api_gateway_authorizer": {
Tok: awsResource(apigatewayMod, "Authorizer"),
Fields: map[string]*tfbridge.SchemaInfo{
"rest_api_id": {
Name: "restApi",
Type: "string",
AltTypes: []tokens.Type{awsTypeDefaultFile(apigatewayMod, "RestApi")},
},
},
},
thankful-match-46035
09/29/2023, 1:14 PMenough-garden-22763
09/29/2023, 1:16 PMquaint-spring-93350
09/29/2023, 1:16 PMovhUrn
thankful-match-46035
09/29/2023, 1:20 PMresource.go
file:
"ovh_cloud_project": {
Tok: ovhResource(cloudProjectMod, "Project"),
Fields: map[string]*tfbridge.SchemaInfo{
"urn": {
Name: "ProjectURN",
},
},
},