-
Notifications
You must be signed in to change notification settings - Fork 302
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
When using the latest ecs-cli and the new tags option, container instances will not launch. #744
Comments
Hi @rroller, could you include the output when you run the above command? |
Thanks! Sounds like you don't need the output of my command then. If you do please let me know. |
@rroller We've diagnosed the issue; I put up a PR to fix it. Root Cause
Agent Log:
ECS Init log:
Unfortunately, it looks like in #724 I tested container instance tagging using a custom instance role: #724 (comment) I missed the other case: the CLI creating the instance role. Which unfortunately is the default case. Work Arounds for 1.13.0
Then you will get a message from ecs-cli up:
|
Thanks for the quick response and details. Does this mean the next version of the CLI things will work as expected without applying any of the work around? |
Yeah. While its against our policy to give exact dates for releases, we do believe in quickly releasing fixes for bugs like this. Once #745 is merged, tagging in |
@rroller a fix was just released in |
@rroller can you give us full command output and etc? We tested this functionality pretty thoroughly prior to releasing. |
Do you have somewhere private I can send it? |
@rroller please email wppttt@amazon.com |
I suspect that's why. |
Yeah, its an annoying issue. The container instance is registered by the EC2 instance role, and so that IAM Role must be opted in to long ARNs. And the only way to do make that happen is to set the default for your account. |
I ran: aws ecs put-account-setting-default --name serviceLongArnFormat \
--value enabled \
--region us-east-1 \
--profile my-profile-name Then deployed again. Same issue. I'll email you my logs. |
Per the offline email, I needed... aws ecs put-account-setting-default \
--name containerInstanceLongArnFormat \
--value enabled \
--region us-east-1 --profile my-profile-name After that, things worked! |
I also needed
|
Thanks for the help with these commands!
Previously, it would show my IAM username, now it shows |
Summary
This PR added support to the ecs-cli for tags: #670
When using the new
--tags
option, container instances will not launch. Removing the tags option, container instances will launch.Description
ecs-cli --version
)go version
)MacOSX
Config files
Expected Behavior
Container instances should launch
Observed Behavior
Container instances did not launch
The text was updated successfully, but these errors were encountered: