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

fast-activity-86095

04/27/2020, 10:37 PM
Copy code
task_definition = ecs.TaskDefinition(
            name,
            family=name,
            cpu="256",
            memory="512",
            network_mode="awsvpc",
            requires_compatibilities=["FARGATE"],
            execution_role_arn=role.arn,
            container_definitions=json.dumps(
                [
                    {
                        "name": "my-app",
                        "image": image,
                        "portMappings": [{"containerPort": port, "protocol": "tcp"}],
                    }
                ]
            ),
            opts=child_opts,
        )
Is there something I need to do to get the two stacks to work together? I don't have this problem with my other networking project stack, which uses python.