-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ECS Service connect #426
Comments
how is it going on? any temporary fix? I used cloudmap before Connect existed and without making any changes this error pops up |
Hi! A temporal fix to work with our project consisted in creating a new task version from the AWS Dashboard changing the value of the App protocol (to None) and deleting the Port name (empty). Be careful when you create a new task version manually. The dashboard form sets a Port name by default when its value is empty, making to fail the Github action again if doesn't delete before. I hope to help you. |
This is a problem only if one uses the AWS Management Console to create new task definition revision. To get around this, one could use the Create new version with JSON option while creating the new revision and edit the task definition JSON by hand. |
thank you both @shinenelson @javalon very much! It has helped me to understand and solve the problem 💯 |
When you create a new version from the AWS management console, the tasks are updated correctly. However, with the next deployment, the deployment would fail since the ports are named in the management console and not in the task definition. |
I am too facing the same problem and wondering if there is a way to fix using Github action rather than adjusting it manually in the console. |
@veglos provided a PR aws/aws-sdk-js#4310 it would be awesome if someone could review and merge this solves the problem of not being able to redeploy service via github actions |
Updating the task definition to use Service Connect, I get an error during the deploy process.
With ECS supporting Service connect,
name
andappProtocol
has to be supported in portMappingshttps://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ECS.html#registerTaskDefinition-property
The text was updated successfully, but these errors were encountered: