Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions samcli/lib/pipeline/bootstrap/stage_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,20 @@ Resources:
- !Ref PipelineUserArn
Action:
- 'sts:AssumeRole'
- Effect: Allow
Principal:
# Allow roles with tag Role=aws-sam-pipeline-codebuild-service-role to assume this role.
# This is required when CodePipeline is the CI/CD system of choice.
AWS:
- !If
- MissingPipelineUser
- !Ref AWS::AccountId
- !Select [4, !Split [':', !Ref PipelineUserArn]]
Action:
- 'sts:AssumeRole'
Condition:
StringEquals:
aws:PrincipalTag/Role: aws-sam-pipeline-codebuild-service-role

ArtifactsBucket:
Type: AWS::S3::Bucket
Expand Down