Requesting Cloudformation Examples for CodePipeline using GitHub v2 Connections

0

I'm trying to create a new pipeline in cloudformation that uses GitHub v2 Connections, which creates a GitHub App for the connection. Any examples or documentation with this flow would be greatly appreciated.

FYI - using the connections which can be found/created here. https://us-east-1.console.aws.amazon.com/codesuite/settings/connections/create?origin=settings&region=us-east-1

1 Answer
0

After trial and error, I figured it out

        - Name: Source
          Actions:
            - Name: Source
              # https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-type
              ActionTypeId:
                Category: Source
                Owner: AWS                
                Provider: CodeStarSourceConnection
                Version: 1
              OutputArtifacts:
                - Name: SourceOutput
              Configuration:
                # need the format of some-user/my-repo
                # does not use Owner: <owner> Repo: <repo> fields
                FullRepositoryId: !Sub "${GitHubOwner}/${GitHubRepoName}"                
                BranchName: !Ref GitHubBranch
                # Connection arn (need to set this up manually first)
                ConnectionArn: !Ref ConnectionArn
                OutputArtifactFormat: CODE_ZIP
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions