File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ export interface EmbeddedLinuxPipelineProps extends cdk.StackProps {
4848 readonly projectKind ?: ProjectKind ;
4949 /** A name for the layer-repo that is created. Default is 'layer-repo' */
5050 readonly layerRepoName ?: string ;
51+ /** Additional policy statements to add to the build project. */
52+ readonly buildPolicyAdditions ?: iam . PolicyStatement [ ] ;
5153}
5254
5355/**
@@ -199,6 +201,10 @@ export class EmbeddedLinuxPipelineStack extends cdk.Stack {
199201 } ,
200202 } ) ;
201203
204+ if ( props . buildPolicyAdditions ) {
205+ props . buildPolicyAdditions . map ( p => project . addToRolePolicy ( p ) )
206+ }
207+
202208 if ( props . projectKind && props . projectKind == ProjectKind . PokyAmi ) {
203209 outputBucket . grantReadWrite ( project ) ;
204210 project . addToRolePolicy ( this . addVMExportPolicy ( ) ) ;
You can’t perform that action at this time.
0 commit comments