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

Cloudwatch-v2 appender and localstack #73

Open
oallauddin opened this issue Mar 18, 2024 · 0 comments
Open

Cloudwatch-v2 appender and localstack #73

oallauddin opened this issue Mar 18, 2024 · 0 comments

Comments

@oallauddin
Copy link

oallauddin commented Mar 18, 2024

Is there any way to override the AWS endpoint url 169.254.169.254 when using localstack locally?
We have tried setting environment variables but it appears that it is still trying to log to real AWS instead of localstack.

AWS_ACCESS_KEY_ID=access_key_id
AWS_SECRET_ACCESS_KEY=secret_access_key
AWS_SESSION_TOKEN=session_token
AWS_DEFAULT_REGION=us-east-1
AWS_REGION=us-east-1
AWS_ENDPOINT_URL=http://localstack:4566
AWS_ENDPOINT_URL_CLOUDWATCH_LOGS=http://localstack:4566
Exception in thread "Timer-1" software.amazon.awssdk.services.cloudwatchlogs.model.UnrecognizedClientException: The security token included in the request is invalid. (Service: CloudWatchLogs, Status Code: 400, Request ID: 53c25469-8c07-4a17-b588-667376eca83e)
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

No branches or pull requests

1 participant