hkb-pipeline-stacksets
StackSets action role. Makes change sets on hkb-stacksets-* stacks (which own service-managed StackSets) and passes hkb-pipeline-cfn-stacksets to CloudFormation.
- 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, resourceStackSetsRole.
Trust policy
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Principal:
AWS: !GetAtt OrchestratorRole.Arn
Action: sts:AssumeRole
Permissions
Policies:
- PolicyName: hkb-pipeline-stacksets
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-stacksets-*/*
- Sid: PassOnlyItsCloudFormationRole
Effect: Allow
Action: iam:PassRole
Resource: !Sub arn:${AWS::Partition}:iam::${AWS::AccountId}:role/hkb-pipeline-cfn-stacksets
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
- Shared Services, Access, Roles, Pipeline roles
- Plain markdown
- /wiki/roles/pipeline/hkb-pipeline-stacksets/index.md