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

질문됨 6달 전332회 조회
1개 답변
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
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠