```task_definition = ecs.TaskDefinition( ...
# general
f
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.