https://pulumi.com logo
#google-cloud
Title
# google-cloud
q

quick-wolf-8403

01/14/2022, 7:23 PM
secret, err := secretmanager.NewSecret(ctx,
"myTestSecret",
&secretmanager.SecretArgs{
Replication: secretmanager.ReplicationArgs{},
SecretId:    pulumi.String("joebob"),
}, nil)
q

quick-wolf-8403

01/14/2022, 7:43 PM
So I should use Classic instead of Native, you think? ok
In the docs you linked, it just wants a simple bool for Automatic. But google-native wants an AutomaticPointer, which is where I got stuck.
Ah, I see. This works:
Copy code
secret, err := secretmanager.NewSecret(ctx,
			"myTestSecret",
			&secretmanager.SecretArgs{
				Replication: secretmanager.ReplicationArgs{
					Automatic: secretmanager.AutomaticPtr(&secretmanager.AutomaticArgs{}),
				},
				SecretId: pulumi.String("joebob"),
			}, nil)
Not clear on how to SET a secret's value, though.
b

billowy-army-68599

01/14/2022, 8:13 PM
it's SecretVersion
sorry will link when I get a few secs
oh, it's not supported in the google api yet
you'll have to fall back to gcp classic for that
q

quick-wolf-8403

01/14/2022, 8:20 PM
I see that
Ok, thanks for clarifyig!
*Clarifying