Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,47 @@ Parameters:
OrganizationID:
Type: String
MinLength: "1"

ADFVersion:
Type: String
MinLength: "1"

LambdaLayer:
Type: String
MinLength: "1"

CrossAccountAccessRole:
Type: String
MinLength: "1"

PipelineBucket:
Type: String
MinLength: "1"

RootAccountId:
Type: String
MinLength: "1"

CodeBuildImage:
Type: String
MinLength: "1"

CodeBuildComputeType:
Type: String
MinLength: "1"

SharedModulesBucket:
Type: String
MinLength: "1"

PipelinePrefix:
Type: String
MinLength: "1"

StackPrefix:
Type: String
MinLength: "1"

ADFLogLevel:
Type: String
MinLength: "1"
Expand Down Expand Up @@ -98,6 +109,7 @@ Resources:
Resource: !Sub "${ADFPipelineBucket.Arn}/*"
Roles:
- !Ref DeploymentMapProcessingLambdaRole

CrossAccountCloudFormationPolicy:
Type: "AWS::IAM::ManagedPolicy"
Properties:
Expand Down Expand Up @@ -178,6 +190,7 @@ Resources:
Type: "AWS::IAM::Role"
Properties:
Path: "/adf-automation/"
RoleName: "adf-pipeline-provisioner-generate-inputs"
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
Expand Down Expand Up @@ -206,6 +219,7 @@ Resources:
- "ssm:PutParameter"
Resource:
- "*"

StoreDefinitionLambdaRole:
Type: "AWS::IAM::Role"
Properties:
Expand All @@ -229,6 +243,7 @@ Resources:
- "s3:PutObject"
Resource:
- !Sub "${ADFDefinitionBucket.Arn}/*"

IdentifyOutOfDatePipelinesLambdaRole:
Type: "AWS::IAM::Role"
Properties:
Expand Down Expand Up @@ -537,6 +552,7 @@ Resources:
- cdk synth --app adf-build/cdk/generate_pipeline_stacks.py -vv
- python adf-build/cdk/execute_pipeline_stacks.py
ServiceRole: !GetAtt PipelineManagementCodeBuildProjectRole.Arn

PipelineManagementCodeBuildProjectRole:
Type: AWS::IAM::Role
Properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Resources:
- !Sub "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/adf-codebuild-role"
- !Sub "arn:${AWS::Partition}:iam::${DeploymentAccountId}:role/adf-codebuild-role"
- !Sub "arn:${AWS::Partition}:iam::${DeploymentAccountId}:role/adf-pipeline-provisioner-codebuild-role"
- !Sub "arn:${AWS::Partition}:iam::${DeploymentAccountId}:role/adf-automation/adf-pipeline-provisioner-generate-inputs"
Action:
- sts:AssumeRole
Path: /
Expand Down