Skip to content

Commit

Permalink
Update using latest template
Browse files Browse the repository at this point in the history
  • Loading branch information
aahung committed Jun 23, 2021
1 parent 7ecdd30 commit 147f4ce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions codepipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ Description: >
# "<branch-name>" with the branch name and "<codestar-connection-arn>" with the CodeStar Connection ARN which
# can be found in the first pipeline stack's output.)


Parameters:
CodeStarConnectionProviderType:
GitProviderType:
Type: String
Default: "GitHub"
FullRepositoryId:
Expand Down Expand Up @@ -99,7 +100,7 @@ Resources:
Type: AWS::CodeStarConnections::Connection
Properties:
ConnectionName: GitRepositoryConnection
ProviderType: !Ref CodeStarConnectionProviderType
ProviderType: !Ref GitProviderType

Pipeline:
Type: AWS::CodePipeline::Pipeline
Expand Down Expand Up @@ -651,8 +652,8 @@ Resources:
--image-repository ${ENV_IMAGE_REPOSITORY}
--no-fail-on-empty-changeset
--role-arn ${ENV_CLOUDFORMATION_EXECUTION_ROLE}
Outputs:
CodeStarConnectionArn:
Condition: CreateConnection
Description: The Arn of AWS CodeStar Connection used to connect to external code repositories.
Value: !If [CreateConnection, !Ref CodeStarConnection, !Ref CodeStarConnectionArn]
Value: !Ref CodeStarConnection

0 comments on commit 147f4ce

Please sign in to comment.