-
Notifications
You must be signed in to change notification settings - Fork 4.5k
AutoAssignIP is always set to true, even for ECS EC2 task #2996
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloud@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerbugThis issue is a bug.This issue is a bug.good first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdlanguage/javaRelated to Java bindingsRelated to Java bindingsneeds-reproductionThis issue needs reproduction.This issue needs reproduction.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-ec2Related to Amazon Elastic Compute CloudRelated to Amazon Elastic Compute Cloud@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerRelated to Amazon Elastic ContainerbugThis issue is a bug.This issue is a bug.good first issueRelated to contributions. See CONTRIBUTING.mdRelated to contributions. See CONTRIBUTING.mdlanguage/javaRelated to Java bindingsRelated to Java bindingsneeds-reproductionThis issue needs reproduction.This issue needs reproduction.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
I want to create a Compatibility.Ec2AndFargate TaskDefinition. using the network mode AWSVPC. However, AutoAssignIP property is set automatically if we use public Subnet.
See run-ecs-task-base.ts. While it is not a problem with Fargate, ECS EC2 does not allow to have AutoAssignIP to true.
What is the expected behavior (or behavior of feature suggested)?
AutoAssignIP should be disabled in run-ecs-ec2-task.ts
What is the motivation / use case for changing the behavior or adding this feature?
Make Fargate task definition work with ECS EC2
Please tell us about your environment:
Code: