You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change the network mode check (or remove it completely and let the service API be the master when it comes to these checks which would avoid having too keep updating the code.
Note that ExternalTaskProp struct also should support adding the network mode as an option.
Additional Information/Context
No response
CDK CLI Version
2.9.0
Framework Version
No response
Node.js Version
v14.15.4
OS
MACOSX
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
quick fix for bug: aws#19922
A longer term solution should be put together that includes updating the ExternalTaskProp structure to support network modes now that ECS-A for windows allows more than bridge
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
in the following file
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-ecs/lib/base/task-definition.ts
the following check was implemented too support ECS Anywhere:
throw new Error(
External tasks can only have Bridge network mode, got: ${this.networkMode}
);Since ECS-Anywhere for windows was release a few weeks ago we should lift this restriction. the documentation (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-anywhere.html) states now:
"Tasks that run on external instances must use the bridge, host, or none network modes. The awsvpc network mode isn't supported."
this issue is blocking the use of CDK with ECS for windows.
Expected Behavior
all network modes supported in the doc shouold be supported in the code:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-anywhere.html
Current Behavior
only bridge network mode is supported which prevent creation of external task def for windows OS
Reproduction Steps
Possible Solution
change the network mode check (or remove it completely and let the service API be the master when it comes to these checks which would avoid having too keep updating the code.
Note that ExternalTaskProp struct also should support adding the network mode as an option.
Additional Information/Context
No response
CDK CLI Version
2.9.0
Framework Version
No response
Node.js Version
v14.15.4
OS
MACOSX
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: