bored-table-20691
05/26/2021, 5:51 PMbucket, err := s3.NewBucket(ctx, fmt.Sprintf("my-bucket-%s", region), nil)
if err != nil {
return err
}
ctx.Export("bucket", bucket.ID())
And then in another stack:
infraStack, err := pulumi.NewStackReference(ctx, "...", nil)
infraBucket := infraStack.GetStringOutput(pulumi.String("bucket"))
auditLogLocation := pulumi.Sprintf("<s3://%s/audit-logs>", infraBucket)
auditLogLocation
is now a secret (i.e. if I export it, it shows up as a secret), and I have to explicitly do pulumi.Unsecret(…).(pulumi.StringOutput)
on it.
This happens for any value that comes from the other stack. This is with Pulumi 3.3.0.gentle-diamond-70147
05/27/2021, 2:03 PMbored-table-20691
05/27/2021, 5:28 PM