Skip to content

Commit ce304d4

Browse files
adding datasource for autokeyconfig (#12611) (#3261)
[upstream:9ca4299ff15c8f81506bbed2696bd30919c440db] Signed-off-by: Modular Magician <[email protected]>
1 parent c6924a5 commit ce304d4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/hashicorp/hcl/v2 v2.20.1
1212
github.com/hashicorp/terraform-json v0.22.1
1313
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0
14-
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241231002056-cf207223e948
14+
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20250102165728-03d2ddcd94b6
1515
github.com/mitchellh/go-homedir v1.1.0 // indirect
1616
github.com/pkg/errors v0.9.1
1717
github.com/stretchr/testify v1.9.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh
190190
github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A=
191191
github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c=
192192
github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0=
193-
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241231002056-cf207223e948 h1:quMQwHfjyCj0XjCNsP3bUiUqsBjwkHepx8Bg1H9GSDM=
194-
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20241231002056-cf207223e948/go.mod h1:+3tdRXgcI0aDAIH8vCVW2qAfcn7JiGlEv8RGuQJp6yY=
193+
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20250102165728-03d2ddcd94b6 h1:kMruL72RAsNZosYkQFEiXdP6uodSRT1AgLwOiaZY9ig=
194+
github.com/hashicorp/terraform-provider-google-beta v1.20.1-0.20250102165728-03d2ddcd94b6/go.mod h1:+3tdRXgcI0aDAIH8vCVW2qAfcn7JiGlEv8RGuQJp6yY=
195195
github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI=
196196
github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM=
197197
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=

tfplan2cai/converters/google/resources/services/kms/kms_utils.go

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ type KmsKeyHandleId struct {
2626
Name string
2727
}
2828

29+
type KmsAutokeyConfigId struct {
30+
Folder string
31+
}
32+
33+
func (s *KmsAutokeyConfigId) AutokeyConfigId() string {
34+
return fmt.Sprintf("%s/autokeyConfig", s.Folder)
35+
}
36+
2937
func (s *KmsKeyHandleId) KeyHandleId() string {
3038
return fmt.Sprintf("projects/%s/locations/%s/keyHandles/%s", s.Project, s.Location, s.Name)
3139
}

0 commit comments

Comments
 (0)