bug: CreateFlowLogs with S3 log destination fails to discover bucket #10773
Labels
aws:ec2
Amazon Elastic Compute Cloud
status: backlog
Triaged but not yet being worked on
type: bug
Bug report
Is there an existing issue for this?
Current Behavior
EC2:CreateFlowLogs
when used with the S3 log destination type fails with following error:This is despite the S3 bucket existing:
Expected Behavior
No response
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
Environment
Anything else?
This occurs because in the Moto implementation of CreateFlowLogs, the S3 backend is directly accessed.
https://github.com/getmoto/moto/blob/dea4a98b64fe8b8a8d7b02e5446756d1b439af55/moto/ec2/models/flow_logs.py#L225-L231
On the other hand, the bucket lives in the S3 provider in LocalStack and the Moto backend is empty really.
The text was updated successfully, but these errors were encountered: