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
Conversation
@jorgebastida any chance you could review this please? |
Would be really great to merge this addition! |
+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", |
There was a problem hiding this comment.
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
It is such a long time that it is embarrassing, but if somebody manages to do that quick fix I would happily merge it. |
@jorgebastida added PR. Please check if it's enough. Thank you. |
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.