aws / aws/aws-cdk

(codebuild): add granular grant methods

Open
#21,721 0 comments 2 reactions 0 assignees View on GitHub
@aws-cdk/aws-codebuild @aws-cdk/aws-codepipeline @aws-cdk/aws-iam feature-request needs-design needs-discussion p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
71

Description

### Describe the feature

CodeBuild currently does not have methods to grant CodeBuild specific api commands to Iam roles.

### Use Case

I am using lambdas in a custom resource to start and wait on a CodeBuild job. Granting the permissions to the lambdas with grant methods would have been a much better user experience.

### Proposed Solution

Implement grant methods similar to other constructs. For example, `ecr.Repository` has `grantPull` and `grantPullPush` methods. Same for s3 with read and write.

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.37

### Environment details (OS name and version, etc.)

Mac Pro 1 chip

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Find the CodeBuild construct and inspect the existing grantPull and grantPullPush patterns in ecr.Repository and the analogous S3 methods; done means CodeBuild exposes granular grant methods that let callers grant specific API commands to IAM roles.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
authorization, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.