compose-x / ecs_composex

Manage, Configure and Deploy your services and AWS services and applications from your docker-compose definitions
https://docs.compose-x.io
Mozilla Public License 2.0
165 stars 17 forks source link

[FR] x-s3.NotificationConfiguration and x-sqs support #639

Closed JohnPreston closed 2 years ago

JohnPreston commented 2 years ago

As an AWS S3 and SQS user, I would like to use QueueNotification and point to x-sqs queues defined. Compose-X will automatically create a new Queue Policy allowing the S3 service to publish to SQS.

x-sqs:
  s3-notifications:
    Properties: {}

x-s3:
  Bucket:
    Properties:
      NotificationConfiguration:
        QueueConfigurations:
          - Queue: x-sqs::s3-notifications
            Event: ""
            Filter: {}

This however only works for new queues as existing queues might have policies already set.