elastic / elastic-serverless-forwarder

Elastic Serverless Forwarder
Other
35 stars 34 forks source link

Remove LocationConstraint when running create-bucket s3 api call #593

Closed kaiyan-sheng closed 7 months ago

kaiyan-sheng commented 7 months ago

What does this PR do?

When REGION equals to us-east-1, which is the default region, adding LocationConstraint when calling aws s3api create-bucket will fail. This PR is to add the option of running the create bucket API call without the --create-bucket-configuration LocationConstraint.

Checklist

github-actions[bot] commented 7 months ago

File Coverage Lines Branches Missing
All files 100% 100% 100% :white_check_mark:
main_aws.py 100% 100% 100% :white_check_mark:
handlers/__init__.py 100% 100% 100% :white_check_mark:
handlers/aws/__init__.py 100% 100% 100% :white_check_mark:
handlers/aws/cloudwatch_logs_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/exceptions.py 100% 100% 100% :white_check_mark:
handlers/aws/handler.py 100% 100% 100% :white_check_mark:
handlers/aws/kinesis_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/replay_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/s3_sqs_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/sqs_trigger.py 100% 100% 100% :white_check_mark:
handlers/aws/utils.py 100% 100% 100% :white_check_mark:
share/__init__.py 100% 100% 100% :white_check_mark:
share/config.py 100% 100% 100% :white_check_mark:
share/environment.py 100% 100% 100% :white_check_mark:
share/events.py 100% 100% 100% :white_check_mark:
share/expand_event_list_from_field.py 100% 100% 100% :white_check_mark:
share/factory.py 100% 100% 100% :white_check_mark:
share/include_exlude.py 100% 100% 100% :white_check_mark:
share/json.py 100% 100% 100% :white_check_mark:
share/logger.py 100% 100% 100% :white_check_mark:
share/multiline.py 100% 100% 100% :white_check_mark:
share/secretsmanager.py 100% 100% 100% :white_check_mark:
share/utils.py 100% 100% 100% :white_check_mark:
share/version.py 100% 100% 100% :white_check_mark:
shippers/__init__.py 100% 100% 100% :white_check_mark:
shippers/composite.py 100% 100% 100% :white_check_mark:
shippers/es.py 100% 100% 100% :white_check_mark:
shippers/factory.py 100% 100% 100% :white_check_mark:
shippers/logstash.py 100% 100% 100% :white_check_mark:
shippers/shipper.py 100% 100% 100% :white_check_mark:
storage/__init__.py 100% 100% 100% :white_check_mark:
storage/decorator.py 100% 100% 100% :white_check_mark:
storage/factory.py 100% 100% 100% :white_check_mark:
storage/payload.py 100% 100% 100% :white_check_mark:
storage/s3.py 100% 100% 100% :white_check_mark:
storage/storage.py 100% 100% 100% :white_check_mark:

Minimum allowed coverage is 100%

Generated by :monkey: cobertura-action against 9af74f8896d75c71e178fd6dc2c327b69a32495d