-
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
(aws-cloudfront): Add convenience grant methods #13159
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
effort/small
Small work item – less than a day of effort
feature/service-integration
Add functionality to an L2 construct to enable easier integration with another service
feature-request
A feature should be added or improved.
p2
Comments
daniel-j-h
added
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
labels
Feb 19, 2021
github-actions
bot
added
the
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
label
Feb 19, 2021
njlynch
added
effort/small
Small work item – less than a day of effort
p2
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Mar 3, 2021
ericzbeard
added
the
feature/service-integration
Add functionality to an L2 construct to enable easier integration with another service
label
Apr 1, 2021
4 tasks
4 tasks
mergify bot
pushed a commit
that referenced
this issue
Nov 30, 2022
) This PR adds convenience grant methods to `IDistribution`. - `grant(identity, ...actions)` - generic grant method - `grantCreateInvalidation(identity)` - shorthand to grant `cloudfront:CreateInvalidation` action. Fixes #13159 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
brennanho
pushed a commit
to brennanho/aws-cdk
that referenced
this issue
Dec 9, 2022
…#22709) This PR adds convenience grant methods to `IDistribution`. - `grant(identity, ...actions)` - generic grant method - `grantCreateInvalidation(identity)` - shorthand to grant `cloudfront:CreateInvalidation` action. Fixes aws#13159 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
brennanho
pushed a commit
to brennanho/aws-cdk
that referenced
this issue
Jan 20, 2023
…#22709) This PR adds convenience grant methods to `IDistribution`. - `grant(identity, ...actions)` - generic grant method - `grantCreateInvalidation(identity)` - shorthand to grant `cloudfront:CreateInvalidation` action. Fixes aws#13159 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
brennanho
pushed a commit
to brennanho/aws-cdk
that referenced
this issue
Feb 22, 2023
…#22709) This PR adds convenience grant methods to `IDistribution`. - `grant(identity, ...actions)` - generic grant method - `grantCreateInvalidation(identity)` - shorthand to grant `cloudfront:CreateInvalidation` action. Fixes aws#13159 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
effort/small
Small work item – less than a day of effort
feature/service-integration
Add functionality to an L2 construct to enable easier integration with another service
feature-request
A feature should be added or improved.
p2
Hey hey,
ideally the cloudfront distribution would provide convenience
.grant*
methods, to e.g. grant a user the permissions to invalidate a distribution or get a invalidation so the can wait on it until completion.Use Case
A common use case is creating a CI/CD user with permissions to
for example this could be a CI/CD user automatically building and publishing static assets.
Now it would be great to have functionality like
or similar, instead of having to write the policy out manually.
The text was updated successfully, but these errors were encountered: