copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

AWS Copilot Windows Container Deployment issues

Open chris-vaughan-285 opened this issue 2 years ago • 1 comments

While trying to deploy my windows container using copilot I get the following error:

  • An ECS service to run and maintain your tasks in the environment cluster [create failed][0.0s]Resource handler returned message: "Unsupported operating system in task definition. Please choose Linux"

I have the following in my manifest: platform: windows/x86_64

cpu: 1024 # Number of CPU units for the task. memory: 2048 # Amount of memory in MiB used by the task. count: 1 # Number of tasks that should be running in your service. exec: true # Enable running commands in your container. network: connect: true # Enable Service Connect for intra-environment traffic between services.

Is there anything that would cause this issue or do you have any potential fixes for it?

chris-vaughan-285 avatar Feb 27 '24 21:02 chris-vaughan-285

Hello @chris-vaughan-285 ! Service connect doesn't work with tasks that need to run on Windows. Try changing network.network to false!

The error message is confusing though - it also took me a while to figure out what was wrong. I will see if there is anything we can do in Copilot to clearly communicate that service connect isn't compatible with Windows.

Lou1415926 avatar Feb 28 '24 18:02 Lou1415926

This issue is stale because it has been open 60 days with no response activity. Remove the stale label, add a comment, or this will be closed in 14 days.

github-actions[bot] avatar Apr 29 '24 00:04 github-actions[bot]

This issue is closed due to inactivity. Feel free to reopen the issue if you have any further questions!

github-actions[bot] avatar May 13 '24 00:05 github-actions[bot]