Navigation Menu

Skip to content

How to use the pulumi.StringPtrOutput value as a pulumi string input for another resource? #8939

Discussion options

You must be logged in to vote

For the last volume, the way to properly reference the resource is:

ResourceNames: pulumi.StringArray{
		// CfgMap.Metadata.Name(),. won't work
		cfgMap.Metadata.Name().Elem(), // 👈 DID WORK
	},

Thanks to @itay for the help.
It was mentioned that this is where the Go type system gets in the way for just working, but with this fix, I'm good to go for now. Thanks! 💯

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sheldonhull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant