Skip to content

Commit

Permalink
Fix cloudrun service auto name (#2163)
Browse files Browse the repository at this point in the history
fixes #2162

Cloudrun service, like a bunch of other resources in GCP does not accept
capital letters in its name. This fixes the autonaming to lowercase the
pulumi name.

Opened #2164 to follow up on
defaulting this for all resources in GCP.
  • Loading branch information
VenelinMartinov authored Jul 8, 2024
1 parent 2e9d337 commit 50657a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ func Provider() tfbridge.ProviderInfo {

// CloudRun Resources
"google_cloud_run_domain_mapping": {Tok: gcpResource(gcpCloudRun, "DomainMapping")},
"google_cloud_run_service": {Tok: gcpResource(gcpCloudRun, "Service")},
"google_cloud_run_service": {Tok: gcpResource(gcpCloudRun, "Service"), Fields: nameField(lowercaseAutoName())},
"google_cloud_run_service_iam_binding": {
Tok: gcpResource(gcpCloudRun, "IamBinding"),
Docs: &tfbridge.DocInfo{Source: "cloud_run_service_iam.html.markdown"},
Expand Down

0 comments on commit 50657a0

Please sign in to comment.