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

init: support parsing metadata response cluster ARN to name #641

Closed
wants to merge 1 commit into from

Conversation

PettitWesley
Copy link
Contributor

Cluster
The Amazon Resource Name (ARN) or short name of the Amazon ECS cluster to which the task belongs.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v4.html

Previously we assumed the response was always just the name.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

> Cluster
> The Amazon Resource Name (ARN) or short name of the Amazon ECS cluster to which the task belongs.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v4.html

Previously we assumed the response was always just the name.

Signed-off-by: Wesley Pettit <[email protected]>
@PettitWesley PettitWesley requested a review from a team as a code owner April 21, 2023 05:17
@@ -59,23 +60,45 @@ func TestGetECSTaskMetadata(t *testing.T) {
ECS_TASK_ARN: "arn:aws:ecs:us-west-2:123456789123:task/ecs-cluster/4ca5a280e68947cd84a8357f0d008fb5",
ECS_TASK_ID: "4ca5a280e68947cd84a8357f0d008fb5",
ECS_FAMILY: "code_test_A",
ECS_LAUNCH_TYPE: "", // empty lunch type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤣

@PettitWesley
Copy link
Contributor Author

This will be released and merged here: #640

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.

2 participants