Hello,
I'm having trouble using the S3 module as described here
I'm authenticating with access and secret key and my .yml begins like this:
filebeat.inputs:
- type: aws-s3
bucket_arn: arn:aws:s3:::guillens
number_of_workers: 5
bucket_list_interval: 300s
access_key_id: 'myAccessKey'
secret_access_key: 'mySecretKey'
endpoint: 's3.us-east-1.amazonaws.com'
When I run my filebeat I get the following error:
Input 'aws-s3' failed with: failed to initialize s3 poller: failed to get AWS region for bucket_arn: exceeded maximum number of attempts, 3, request send failed, Get "https://s3.us-east-1.s3-accesspoint.us-east-1.amazonaws.com/guillens?location=": x509: certificate is valid for s3.amazonaws.com, *.s3.amazonaws.com, *.s3.dualstack.us-east-1.amazonaws.com, s3.dualstack.us-east-1.amazonaws.com, *.s3.us-east-1.amazonaws.com, s3.us-east-1.amazonaws.com, *.s3-control.us-east-1.amazonaws.com, s3-control.us-east-1.amazonaws.com, *.s3-control.dualstack.us-east-1.amazonaws.com, s3-control.dualstack.us-east-1.amazonaws.com, *.s3-accesspoint.us-east-1.amazonaws.com, *.s3-accesspoint.dualstack.us-east-1.amazonaws.com, *.s3.us-east-1.vpce.amazonaws.com, not s3.us-east-1.s3-accesspoint.us-east-1.amazonaws.com {"id": "D16ABDB47E2E81B3"}
It looks like the issue has to do with this x509: certificate is valid for s3.amazonaws.com
but I'm not sure how to resolve this? Couldn't find any info online regarding this.
Anyone know where I get this certificate?