Unable to use AWS code build webhook scope configuration for GitLab
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
### Describe the feature
CreateWebhook [1] in CodeBuild API provides a way to configure scope and domain in scopeConfiguration object. Valid Values of scope are : GITHUB_ORGANIZATION | GITHUB_GLOBAL | GITLAB_GROUP as per [2]. However when I try to create a CodeBuild project using CDK with scope value set, I see an error. If no scope value is set, it defaults to GITHUB_ORGANIZATION for my GITLAB configuration and the update fails.
[1] https://docs.aws.amazon.com/codebuild/latest/APIReference/API_CreateWebhook.html
[2] https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ScopeConfiguration.html#CodeBuild-Type-ScopeConfiguration-scope
### Use Case
Create a GitLab Runner Project via CDK
### Proposed Solution
Update the scope configuration property
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.CfnProject.ScopeConfigurationProperty.html
### 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.189.0
### Environment details (OS name and version, etc.)
Linux, windows
Contributor guide
Research direction
Start at the aws_cdk_lib.aws_codebuild.CfnProject.ScopeConfigurationProperty entry point and compare its scope options with the CreateWebhook and ScopeConfiguration AWS API documentation linked in the issue. The change is done when a GitLab project can use the GITLAB_GROUP scope configuration without defaulting to GITHUB_ORGANIZATION or failing during update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100