Skip to content
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

added region while describing the task definition using ecs #207

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Code-Crash
Copy link

@Code-Crash Code-Crash commented Nov 3, 2023

Change:

Added the --region option to the aws ecs describe-task-definition command.

Use Case:

I encountered a scenario where I, as an AWS Identity and Access Management (IAM) user, have permissions to operate in different regions. I set my AWS CLI profile region using aws configure set default.region first-region. Consequently, any AWS CLI operations I perform are associated with this default region.

Now, let's consider a situation where I need to update an ECS task service in a second region. The catch here is that both regions have a task definition with the same name. Consequently, the AWS CLI would typically default to using the task definition from the first region when updating.

To address this, I added the --region option to the aws ecs describe-task-definition command. By doing this, I specify the desired region for the operation, ensuring that the correct task definition ARN is retrieved and used. This adjustment has resolved the issue, and I can now work with task definitions from different regions as needed.

@Code-Crash Code-Crash requested a review from a team as a code owner November 3, 2023 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant