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

feat(aws-sqs): improvements to IAM grants API #1052

Merged
merged 2 commits into from
Nov 1, 2018
Merged

Commits on Oct 31, 2018

  1. feat(aws-sqs): improvements to IAM grants API

    Moved `grantXxx` methods from `Queue` to `QueueRef`, so they can now be
    performed on imported queues.
    
    Added commonly needed permissions to `grantConsumeMessages` and
    `grantSendMessages` such as `sqs:GetQueueAttributes`, `sqs:GetQueueUrl`
    and the various `sqs:xxxBatch` actions.
    
    Added support for adding arbitrary actions to each of the grant methods.
    
    Exposed `queue.grant(...actions)` as a general purpose grant method
    which allows users to customize the set of actions for this specific 
    resource/principal pair.
    
    BREAKING CHANGE: `queue.grantReceiveMessages` has been removed. It is unlikely that this would be
    sufficient to interact with a queue. Alternatively you can use `queue.grantConsumeMessages` or 
    `queue.grant('sqs:ReceiveMessage')` if there's a need to only grant this action.
    Elad Ben-Israel committed Oct 31, 2018
    Configuration menu
    Copy the full SHA
    51cd486 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2018

  1. Remove additional actions for grant methods

    Elad Ben-Israel committed Nov 1, 2018
    Configuration menu
    Copy the full SHA
    ebf57a7 View commit details
    Browse the repository at this point in the history