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 Antwort
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
beantwortet vor 6 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen