https://pulumi.com logo
#general
Title
# general
a

alert-restaurant-79151

03/28/2020, 9:02 PM
Hi! I'm getting:
Copy code
error: aws:ecs/taskDefinition:TaskDefinition resource 'service' has a problem: ECS Task Definition container_definitions is invalid: Error decoding JSON: json: cannot unmarshal object into Go value of type []*ecs.ContainerDefinition
My code is:
Copy code
const service = new aws.ecs.TaskDefinition("service", {
    containerDefinitions: fs.readFileSync("task-definition.json", "utf-8"),
    family: "some_family",
});