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 aws_endpoint_url cli option #257

Merged
merged 2 commits into from Jul 10, 2020

Conversation

fewstera
Copy link
Contributor

To be able to use awslogs with locally running instances of cloudwatch such as localstack, we need a way to overwrite the endpoint url.

This PR adds an --aws-endpoint-url cli flag to change the endpoint that is called by awslogs.

@coveralls
Copy link

coveralls commented Jul 15, 2019

Coverage Status

Coverage increased (+0.05%) to 92.123% when pulling 53f0588 on fewstera:endpoint into 401870b on jorgebastida:master.

@fewstera
Copy link
Contributor Author

@jorgebastida any chance you could review this please?

@jonathan-palumbo
Copy link

Would be really great to merge this addition!

@Glutexo
Copy link

Glutexo commented May 4, 2020

+1

@@ -55,6 +55,12 @@ def add_common_arguments(parser):
default=os.environ.get('AWS_REGION', None),
help="aws region")

parser.add_argument("--aws-endpoint-url",
Copy link
Owner

Choose a reason for hiding this comment

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

Making this argument read the environment like the other arguments would be ideal

@jorgebastida
Copy link
Owner

jorgebastida commented Jul 9, 2020

It is such a long time that it is embarrassing, but if somebody manages to do that quick fix I would happily merge it.
Please, remember to add this arg to the the doc too.

@leandrodamascena
Copy link
Contributor

It is such a long time that it is embarrassing, but it somebody manages to do that quick fix I would happily merge it.
Please, remember to add this arg to the the doc too.

@jorgebastida added PR. Please check if it's enough.

Thank you.

@jorgebastida jorgebastida merged commit 8f3b258 into jorgebastida:master Jul 10, 2020
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.

None yet

6 participants