victorious-dream-50144
03/09/2024, 12:21 PMexecutionRoleArn := executionRole.Arn.ApplyT(func(arn string) string {
return arn
})
// Container Definition
containerDefinitionJSON, err := json.Marshal([]interface{}{
map[string]interface{}{
"name": "workerr",
"image": "<http://1234567890.dkr.ecr.us-east-2.amazonaws.com/worker:latest|1234567890.dkr.ecr.us-east-2.amazonaws.com/worker:latest>",
"cpu": 250,
"essential": true,
"memory": 256,
"executionRoleArn": executionRoleArn,
I've not been able to get past the following error
error: an unhandled error occurred: program failed:
1 error occurred:
* json: error calling MarshalJSON for type pulumi.StringOutput: Outputs can not be marshaled to JSON
few-dress-15522
03/10/2024, 5:44 PMstring
outside of the ApplyT
. If you need to use it as such, you need to do the work inside the Apply
function. If your container definition is ultimately going to another Pulumi resource, you probably want to just keep passing everything around as Pulumi outputs and not force resolution to the underlying type.few-dress-15522
03/10/2024, 5:46 PMnumerous-book-75463
03/11/2024, 12:09 PMjson.Marshal
to pulumi.JSONMarshal
victorious-dream-50144
03/21/2024, 2:29 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by