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

Upgrade to latest awscli #4

Open
terrisgit opened this issue Jan 24, 2018 · 3 comments
Open

Upgrade to latest awscli #4

terrisgit opened this issue Jan 24, 2018 · 3 comments

Comments

@terrisgit
Copy link

terrisgit commented Jan 24, 2018

logbeam currently uses awscli-1.9.8. I removed awscli and installed the latest version (1.14.30). logbeam worked fine but perhaps there are issues that I am not aware of.

@jcerjak
Copy link

jcerjak commented Apr 19, 2018

If possible, it would be better to specify a version range instead of a specific version, to prevent version conflicts.

@efueyo
Copy link

efueyo commented Mar 1, 2019

If you need this:

I ended up switching to https://github.com/kislyuk/watchtower (I liked that their requirements.txt only listed boto3, no other dependencies)

in my case it was breaking other parts of my instance (aws ecr get-login stopped working)

The change was painless and everything seems to work perfectly

from:

from logbeam import CloudWatchLogsHandler
cw_handler = CloudWatchLogsHandler(
    log_group_name='MY_GROUP_NAME',
    log_stream_name='MY_STREAM_NAME',
    logs_client=boto3.client('logs', region_name='MY_REGION'),
)
logger.addHandler(cw_handler)

to

from watchtower import CloudWatchLogHandler
cw_handler = CloudWatchLogHandler(
    log_group='MY_GROUP_NAME',
    stream_name='MY_STREAM_NAME',
    boto3_session=boto3.session.Session(region_name='MY_REGION'),
)
logger.addHandler(cw_handler)

@terrisgit
Copy link
Author

I switched to watchtower as well

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

3 participants