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: Extracts Availability Zone from ECS Task Metadata. #539

Conversation

johnjameswhitman
Copy link
Contributor

Issue #, if available: #538

Description of changes: Makes a task's AZ available as an environment variable.

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

@johnjameswhitman johnjameswhitman requested a review from a team as a code owner February 4, 2023 00:06
}

expectedContent1 := "export FLB_AWS_USER_AGENT=init\n" +
expectedContent1 := "export FLB_AWS_USER_AGENT=ecs-init\n" +
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The default for this value appears to have changed in db3fd7f.

@PettitWesley
Copy link
Contributor

@johnjameswhitman Thank you for contributing this!

Unfortunately, the team is a bit busy right now working on these: #542

I'll try to get you some review as soon as we can.

@PettitWesley PettitWesley changed the title Extracts Availability Zone from ECS Task Metadata. init: Extracts Availability Zone from ECS Task Metadata. Feb 24, 2023
Copy link
Contributor

@PettitWesley PettitWesley left a comment

Choose a reason for hiding this comment

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

Thank you for this! I think the code looks good. Only thing I need to do to approve and merge this is run the manual test here: https://github.com/aws/aws-for-fluent-bit/tree/mainline/integ/test_init

Then we can include it in one of the next releases.

@johnjameswhitman
Copy link
Contributor Author

Thanks for the review @PettitWesley -- did you want me to run that test, or are you gonna do that yourself?

@Claych
Copy link
Contributor

Claych commented Mar 1, 2023

init integ test passed with results shown in the screenshot
image

@Claych Claych merged commit d937c78 into aws:mainline Mar 1, 2023
@johnjameswhitman johnjameswhitman deleted the johnjameswhitman/add-ecs-task-metadata-az branch March 1, 2023 22:07
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.

3 participants