awslabs / sbt-aws

SaaS Builder Toolkit for AWS is a developer toolkit to implement SaaS best practices and increase developer velocity.
Apache License 2.0
90 stars 16 forks source link

feat: Expose CoreAppPlane JobRunner codebuild IAM role #32

Open ujwalbukka opened 1 month ago

ujwalbukka commented 1 month ago

Issue # (if applicable)

Reason for this change

We need this because if codebuild project is provisioning a resource for an AWS service. The resource policy of a AWS service will expect the codebuild project role has permissions to do the needful. For example, the if codebuild project is creating an index in OpenSearch serverless then data access policy of OpenSearch serverless expects the codebuild project role is mentioned as principal which has access to create index.

Description of changes

Created a public readonly map which has jobname and jobRunnerRoleArn

Description of how you validated changes

added unit test

Checklist


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.