rich-exabyte-94739
10/07/2020, 5:56 PMinfra
stack in our `api`stack and using the example code is returning an error:
slug := fmt.Sprintf("foo/%v/%v", ctx.Project(), "infra")
stackRef, err := pulumi.NewStackReference(ctx, slug, nil)
if err != nil {
return err
}
Returns the following error:
pulumi:pulumi:StackReference (foo/bar/api):
error: resource 'urn:pulumi:api::bar::pulumi:pulumi:StackReference::foo/bar/api' registered twice (read and read)
Am I missing something here?