So I appear to have made some progress using `pulu...
# golang
f
So I appear to have made some progress using
pulumi.Any
where I want to define the resources as follows
Copy code
"Resource": []interface{}{
							pulumi.Sprintf("arn:aws:s3:::%s/AWSLogs/%s/*", ctBucket.ID(), logAccount.ID()),
						},
That works fine if I inline it But when I use a function instead like
Copy code
func createS3BucketPolicyResources(bucket *s3.Bucket, accounts []*organizations.Account) []pulumi.StringOutput {
	var resources []pulumi.StringOutput

	for _, account := range accounts {
		resource := pulumi.Sprintf("arn:aws:s3:::%s/AWSLogs/%s/*", bucket.ID(), account.ID())
		resources = append(resources, resource)
	}

	return resources
}
I get an error
marshaling properties: awaiting input property policy: cannot marshal an input of type pulumi.StringOutput with element type string as a value of type pulumi.StringOutput