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

Starred pages

Pages

Page directory · Labels · [ hides this

hkb-pipeline-self

Self-update action role. Makes change sets on the hkb-pipeline stack and passes hkb-pipeline-cfn-self to CloudFormation. Changes nothing itself.

  • Lives in: Shared Services. Trusted by: hkb-pipeline-orchestrator.
  • Boundary: hkb-pipeline-boundary.
  • Reach: 16 named actions across 5 services (cloudformation, iam, kms, s3, ssm); 1 statement on all resources.
  • Source: pipeline/hkb-pipeline-foundation.yaml, resource SelfRole.

Trust policy

AssumeRolePolicyDocument:
  Version: "2012-10-17"
  Statement:
    - Effect: Allow
      Principal:
        AWS: !GetAtt OrchestratorRole.Arn
      Action: sts:AssumeRole

Permissions

Policies:
  - PolicyName: hkb-pipeline-self
    PolicyDocument:
      Version: "2012-10-17"
      Statement:
        - Sid: ChangeSets
          Effect: Allow
          Action:
            - cloudformation:CreateChangeSet
            - cloudformation:DescribeChangeSet
            - cloudformation:ExecuteChangeSet
            - cloudformation:DeleteChangeSet
            - cloudformation:DescribeStacks
            - cloudformation:DescribeStackEvents
            - cloudformation:GetTemplate
            - cloudformation:GetTemplateSummary
            - cloudformation:TagResource
          Resource: !Sub arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/hkb-pipeline/*
        - Sid: PassOnlyItsCloudFormationRole
          Effect: Allow
          Action: iam:PassRole
          Resource: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/hkb-pipeline-cfn-self
          Condition:
            StringEquals:
              iam:PassedToService: cloudformation.amazonaws.com
        - Sid: ValidateTemplates
          Effect: Allow
          Action: cloudformation:ValidateTemplate
          Resource: "*"
        - Sid: ReadTemplateArtifact
          Effect: Allow
          Action:
            - s3:GetObject
            - s3:GetObjectVersion
          Resource: !Sub ${ArtifactBucket.Arn}/*
        - Sid: ArtifactKey
          Effect: Allow
          Action:
            - kms:Decrypt
            - kms:DescribeKey
          Resource: !GetAtt PipelineKey.Arn
        - Sid: ResolveIdParameters
          Effect: Allow
          Action: ssm:GetParameters
          Resource: !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:parameter/hkb/aws/*

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-self/index.md