-
Notifications
You must be signed in to change notification settings - Fork 4k
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
All specification of ResourceTypes when deploying stack #4314
Comments
What improvement does "automatically specifying the list of resource types" provide over allowing all? It feels like this would be a self-fulfilling prophecy, as the perimeter of what's allowed would automatically expand to fit everything that's used inside the CDK Application... Or am I missing something in what your request is? |
|
Hmmmm.... I was thinking the sole purpose of specifying the ResourceTypes would be so that they can be enforced in an IAM policy restricting the user/role executing the template. But I guess they could also be used if the author of the template and the executor of it are different, and the executor wanted to enforce that the author was restricted to certain resource types. So I agree, in that case #3 does not make sense. |
Can you not restrict the deployment role's permissions to only be able to do Route53 things, if that's the only thing you want users to be able to do? If we add the restriction in CDK code, people can always get around them. That does not seem a productive use of engineering effort. |
As per the AWS CloudFormation Security Best Practices I linked to above I would like to restrict it so that ops users in our master account using CDK (CloudFormation) can only manage stacks that deal solely with Route53 hosted zones. For different projects we add DNS records into a hosted zone that is managed in our master account. I don't want these users to be able to access any other more general stacks in that account. But to do this I need to be able to specify |
As far as I can tell, the |
This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
When deploying a stack with the SDK or
aws
CLI it's possible to specifyResourceTypes
so that IAM users can be restricted to deploying stacks with only certain resources inside them. As far I can can tell this is not possible with the CDK.Use Case
I want to restrict certain users to only be able to manage HostedZone RecordSets through CloudFormation, as per AWS CloudFormation security best practices.
Proposed Solution
I can see this being implemented in one of a few different ways:
cdk deploy
like theaws cloudformation create-stack
CLIStack
itself in codeOther
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: