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

Add private IPv4 describe instances filter fallback. #208

Closed
wants to merge 5 commits into from

Conversation

jefchien
Copy link

Description: Same change as aws/amazon-cloudwatch-agent#1149

If the EC2 instance doesn't follow the hostname fixed-format, then the agent needs another way to filter for the instance. The private IPv4 address can also be used as a filter (private-ip-address). There isn't a way to get the region in this case, so the call to EC2 Describe Instances relies on other methods (e.g. the AWS_REGION environment variable) to determine the region to use with the call.

Based on SSM Agent IP retrieval implementation. Uses AZ to determine region if not determined using hostname.

Link to tracking Issue: aws/amazon-cloudwatch-agent#1101

Testing: Added unit tests.

Documentation: N/A

Copy link

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label May 15, 2024
@jefchien jefchien closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants