`secret, err := secretmanager.NewSecret(ctx,` ...
# google-cloud
q
secret, err := secretmanager.NewSecret(ctx,
"myTestSecret",
&secretmanager.SecretArgs{
Replication: secretmanager.ReplicationArgs{},
SecretId:    pulumi.String("joebob"),
}, nil)
q
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
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
I see that
Ok, thanks for clarifyig!
*Clarifying