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(codedeploy): change LambdaDeploymentGroup default managed policy to AWSCodeDeployRoleForLambdaLimited #10276

Merged
merged 5 commits into from
Sep 21, 2020

Conversation

vrr-21
Copy link
Contributor

@vrr-21 vrr-21 commented Sep 9, 2020

The managed policy AWSCodeDeployRoleForLambda used for Lambda deployments has broad permissions, providing publish access to all SNS topics within the customer's accounts.
This change replaces that with a new policy AWSCodeDeployRoleForLambdaLimited which removes those permissions.
This should be safe, as the SNS publish permission is only ever used when setting up triggers,
and we don't support that feature in LambdaDeploymentGroup.

BREAKING CHANGE: the default policy for LambdaDeploymentGroup no longer contains sns:Publish on * permissions


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@vrr-21 vrr-21 marked this pull request as ready for review September 9, 2020 22:57
@skinny85 skinny85 changed the title chore(aws-codedeploy): update codedeploy managed policy chore(codedeploy): update codedeploy managed policy Sep 10, 2020
@skinny85 skinny85 changed the title chore(codedeploy): update codedeploy managed policy chore(codedeploy): update LambdaDeploymentGroup default managed policy to AWSCodeDeployRoleForLambdaLimited Sep 10, 2020
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vrr-21 !

@mergify
Copy link
Contributor

mergify bot commented Sep 21, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@skinny85 skinny85 changed the title chore(codedeploy): update LambdaDeploymentGroup default managed policy to AWSCodeDeployRoleForLambdaLimited feat(codedeploy): change LambdaDeploymentGroup default managed policy to AWSCodeDeployRoleForLambdaLimited Sep 21, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 3a19196
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Sep 21, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 13e7bde into aws:master Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants