Skip to content

Commit

Permalink
Autonaming for service account and IAM IDs (#2589)
Browse files Browse the repository at this point in the history
Fixes #91

---------

Co-authored-by: Richard Shade <[email protected]>
  • Loading branch information
iwahbe and rshade authored Nov 7, 2024
1 parent 6df983c commit 541bbcf
Show file tree
Hide file tree
Showing 18 changed files with 84 additions and 111 deletions.
5 changes: 0 additions & 5 deletions provider/cmd/pulumi-resource-gcp/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -244759,7 +244759,6 @@
"requiredInputs": [
"orgId",
"permissions",
"roleId",
"title"
],
"stateInputs": {
Expand Down Expand Up @@ -247246,7 +247245,6 @@
},
"requiredInputs": [
"permissions",
"roleId",
"title"
],
"stateInputs": {
Expand Down Expand Up @@ -258088,9 +258086,6 @@
"willReplaceOnChanges": true
}
},
"requiredInputs": [
"accountId"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering Account resources.\n",
"properties": {
Expand Down
10 changes: 10 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

pf "github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
info "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/info"
tks "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/tokens"
shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim"
shimv2 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2"
Expand Down Expand Up @@ -787,6 +788,9 @@ func Provider() tfbridge.ProviderInfo {
},
"google_organization_iam_custom_role": {
Tok: gcpResource(gcpOrganization, "IAMCustomRole"),
Fields: map[string]*tfbridge.SchemaInfo{
"role_id": info.AutoName("", 255, "-"),
},
Docs: &tfbridge.DocInfo{
Source: "google_organization_iam_custom_role.html.markdown",
},
Expand Down Expand Up @@ -862,6 +866,9 @@ func Provider() tfbridge.ProviderInfo {
},
"google_project_iam_custom_role": {
Tok: gcpResource(gcpProject, "IAMCustomRole"),
Fields: map[string]*tfbridge.SchemaInfo{
"role_id": info.AutoName("", 255, "-"),
},
Docs: &tfbridge.DocInfo{
Source: "google_project_iam_custom_role.html.markdown",
},
Expand Down Expand Up @@ -912,6 +919,9 @@ func Provider() tfbridge.ProviderInfo {

"google_service_account": {
Tok: gcpResource(gcpServiceAccount, "Account"),
Fields: map[string]*tfbridge.SchemaInfo{
"account_id": info.AutoName("", 30, "-"),
},
Docs: &tfbridge.DocInfo{
Source: "google_service_account.html.markdown",
},
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/Organizations/IAMCustomRole.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/dotnet/Projects/IAMCustomRole.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sdk/dotnet/ServiceAccount/Account.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions sdk/go/gcp/organizations/iamcustomRole.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions sdk/go/gcp/projects/iamcustomRole.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions sdk/go/gcp/serviceaccount/account.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions sdk/nodejs/organizations/iamcustomRole.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions sdk/nodejs/projects/iamcustomRole.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 541bbcf

Please sign in to comment.