question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(pipelines/bootstrap): add Permission Boundary to bootstrap resources

See original GitHub issue

The cdk bootstrap command will be able to be invoked as follows:

$ cdk bootstrap --permissions-boundary=arn:aws:iam::account-id:policy/policy-name-with-path

This sets the CloudFormation Execution Role up to enforce its use.

When users add:

{
  "context": {
    "@aws-cdk/core.permissionsBoundary": "arn:aws:iam::account-id:policy/policy-name-with-path"
  }
}

To their cdk.json, all Roles in all stacks will be provisioned with that permission boundary automatically.


This is a 🚀 Feature Request

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:13
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
patrickmryancommented, Feb 7, 2022

Yes, that’s mine.

pat

On Mon, Feb 7, 2022 at 12:05 PM Kevin Johnson @.***> wrote:

@patrickmryan https://github.com/patrickmryan this is your blog post correct?

@.***/bootstrapping-aws-cdk-in-a-secure-environment-9bc778ea6d94

— Reply to this email directly, view it on GitHub https://github.com/aws/aws-cdk/issues/12207#issuecomment-1031702187, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEHXMGFTUFBJTODGJ3JXEDUZ73VBANCNFSM4VGYVZLA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

@.*** @.*** https://www.facebook.com/patrick.m.ryan1 http://www.imageryan.com

1reaction
viktorchukhantsevcommented, Feb 8, 2022

@patrickmryan Thank you. Can you also please attach example policy for boundary in GH repo? I have issues with defining that policy due to lack of knowledge about AWS policies and boundary permissions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deploy CDK v2 to an account that requires boundary ...
AWS CDK bootstrapping assumes that the AWS role has all of the necessary permissions to create the initial resources.
Read more >
AWS CDK How to Set Permission Boundary to New Roles ...
My CDK project failed when it tries to create new roles within the pipeline. API: iam:CreateRole User: arn:aws:sts::305326993135:assumed-role/ ...
Read more >
Bootstrapping AWS CDK in a Secure Environment - Medium
Find each AWS::IAM::Role resource in the template and, each one, add the ... You will need to use the appropriate permissions boundary policy...
Read more >
Production-Ready CDK - Bootstrapping - Luminis
We call the process of setting these resources bootstrapping. ... the command will probably fail because of the permissions boundary.
Read more >
IAM Permission Boundary does not prevent CDK escalating ...
In fact, cdk deploy essentially just creates a CloudFormation stack and calls the CloudFormation service which performs the actual resources creation. CDK ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found