latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

hkb-pipeline-site-orchestrator

CodePipeline service role for hkb-pipeline-site. Moves artifacts, starts the Validate and site-sync builds, assumes hkb-pipeline-site in Sandbox, Dev and Prod. Deploys nothing itself.

  • Lives in: Shared Services. Trusted by: codepipeline.amazonaws.com.
  • Boundary: hkb-pipeline-boundary.
  • Reach: 14 named actions across 5 services (codebuild, codeconnections, kms, s3, sts); 0 statements on all resources.
  • Source: pipeline/hkb-pipeline-foundation.yaml, resource SiteOrchestratorRole.

Trust policy

AssumeRolePolicyDocument:
  Version: "2012-10-17"
  Statement:
    - Effect: Allow
      Principal:
        Service: codepipeline.amazonaws.com
      Action: sts:AssumeRole
      Condition:
        StringEquals:
          aws:SourceAccount: !Ref AWS::AccountId
        ArnLike:
          aws:SourceArn: !Sub arn:${AWS::Partition}:codepipeline:${AWS::Region}:${AWS::AccountId}:${SitePipelineName}

Permissions

Policies:
  - PolicyName: hkb-pipeline-site-orchestrator
    PolicyDocument:
      Version: "2012-10-17"
      Statement:
        - Sid: Artifacts
          Effect: Allow
          Action:
            - s3:GetObject
            - s3:GetObjectVersion
            - s3:PutObject
            - s3:GetBucketLocation
            - s3:ListBucket
          Resource:
            - !GetAtt ArtifactBucket.Arn
            - !Sub ${ArtifactBucket.Arn}/*
        - Sid: ArtifactKey
          Effect: Allow
          Action:
            - kms:Decrypt
            - kms:Encrypt
            - kms:GenerateDataKey*
            - kms:DescribeKey
            - kms:ReEncrypt*
          Resource: !GetAtt PipelineKey.Arn
        - Sid: UseGitHubConnection
          Effect: Allow
          Action: codeconnections:UseConnection
          Resource: !Sub arn:${AWS::Partition}:codeconnections:${AWS::Region}:${AWS::AccountId}:connection/*
        - Sid: RunValidateAndSyncBuilds
          Effect: Allow
          Action:
            - codebuild:StartBuild
            - codebuild:BatchGetBuilds
          Resource:
            - !Sub arn:${AWS::Partition}:codebuild:${AWS::Region}:${AWS::AccountId}:project/hkb-pipeline-validate
            - !Sub arn:${AWS::Partition}:codebuild:${AWS::Region}:${AWS::AccountId}:project/hkb-pipeline-site-sync
        - Sid: AssumeSiteDeployRoles
          Effect: Allow
          Action: sts:AssumeRole
          Resource:
            - !Sub arn:${AWS::Partition}:iam::${SandboxAccountId}:role/hkb-pipeline-site
            - !Sub arn:${AWS::Partition}:iam::${DevAccountId}:role/hkb-pipeline-site
            - !Sub arn:${AWS::Partition}:iam::${ProdAccountId}:role/hkb-pipeline-site

Page information

Owner
Identity and Access
Status
current Current: generated from the templates and records in the repository at this build.
Generated from
pipeline/hkb-pipeline-foundation.yaml
Linked from
Access, Roles, Pipeline roles
Plain markdown
/wiki/roles/pipeline/hkb-pipeline-site-orchestrator/index.md