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
I've been trying to use the environmentFiles field in the task definition for a container service that should run on Fargate's WINDOWS_SERVER_2019_CORE operating system. Whenever I try to deploy the task definition I get a "PlatformTaskDefinitionIncompatibilityException" and I'm unable to run the service. When omitting the environmentFiles field I'm able to run the service.
I've been reading the documentation and it seems it should work on Windows platform_version 1.0.0. I've tried to set the platform version to LATEST aswell as 1.0.0 explicitly, but still get this error.
I've also noticed at the changelog for Linux and Windows, there is mention on environmentFiles support in the Linux changelog, but not the Windows changelog, so I'm a bit confused as to whether this should work on Windows in Fargate.
My container definition looks like this (I've redacted my aws account info, but everything is otherwise the same):
environmentFiles
Type: object array
Required: no
A list of files containing the environment variables to pass to a container. This parameter maps to the --env-file option to docker run.
This is not available for Windows containers.
...
As we work to bring the remaining features to the platform we will be sure to update.
@SaloniSonpal - Can you please tag this appropriately for for tracking.
Hi there!
I've been trying to use the environmentFiles field in the task definition for a container service that should run on Fargate's WINDOWS_SERVER_2019_CORE operating system. Whenever I try to deploy the task definition I get a "PlatformTaskDefinitionIncompatibilityException" and I'm unable to run the service. When omitting the environmentFiles field I'm able to run the service.
I've been reading the documentation and it seems it should work on Windows platform_version 1.0.0. I've tried to set the platform version to LATEST aswell as 1.0.0 explicitly, but still get this error.
I've also noticed at the changelog for Linux and Windows, there is mention on environmentFiles support in the Linux changelog, but not the Windows changelog, so I'm a bit confused as to whether this should work on Windows in Fargate.
My container definition looks like this (I've redacted my aws account info, but everything is otherwise the same):
My task role has AmazonECSTaskExecutionRolePolicy attached to it aswell as this task role policy:
Any ideas or pointers would be greatly appreciated! Having the .env support for my service will make life a lot easier!
The text was updated successfully, but these errors were encountered: