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

LOG-1505: SQS3script.py bug #89

Closed
so0k opened this issue Apr 14, 2017 · 2 comments
Closed

LOG-1505: SQS3script.py bug #89

so0k opened this issue Apr 14, 2017 · 2 comments

Comments

@so0k
Copy link

@so0k so0k commented Apr 14, 2017

Some users may have multiple AWS profiles, which causes their credential file to look as follows:

[default]
aws_access_key_id = MY_DEFAULT_ACCOUNT
aws_secret_access_key = MY_DEFAULT_SECRET

[personal]
aws_access_key_id = MY_PERSONAL_ACCOUNT
aws_secret_access_key = MY_PERSONAL_SECRET

the following lines may cause "Unauthorized" errors while running the script:

with open(os.environ['HOME'] + '/.aws/credentials') as f:
    for line in f:
        if "aws_access_key_id" in line:
             access_key = line.split("=",1)[1].strip()
        if "aws_secret_access_key" in line:
             secret_key = line.split("=",1)[1].strip()

Better would be if the python script is migrated to use Boto3 Configuration

However - As an alternative, I suggest the use of the following Terraform configuration: https://github.com/honestbee/loggly-elb-infra

This configuration is more robust and easier customisable for end users.

@mostlyjason
Copy link
Contributor

@mostlyjason mostlyjason commented Apr 17, 2017

Thanks for posting! We also have a new S3 ingestion feature coming out soon that will ingest logs directly in the product without the need for a separate script. Stay tuned!

@nguyenfilip nguyenfilip changed the title SQS3script.py bug LOG-1505: SQS3script.py bug Nov 2, 2018
@MichalChomo
Copy link
Contributor

@MichalChomo MichalChomo commented Aug 19, 2019

This is fixed by #125 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.