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ヶ月前331ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ