Skip to content

Availability of GitHub Source Action Version 2 in AWS CodePipeline by Region?

0

I’m trying to set up a pipeline in AWS CodePipeline using the GitHub Source Action with Version 2. However, when deploying in the us-east-1 region, I encountered the following error: after running my yaml template CodePipeline: Type: 'AWS::CodePipeline::Pipeline' Properties: RoleArn: !GetAtt CodePipelineServiceRole.Arn ArtifactStore: Type: S3 Location: !Ref WebsiteBucket Stages: - Name: Source Actions: - Name: Source ActionTypeId: Category: Source Owner: ThirdParty Provider: GitHub ** Version: 2** //here is my error OutputArtifacts: - Name: SourceOutput Configuration: Owner: !Ref GitHubUser Repo: !Ref GitHubRepo Branch: !Ref GitHubBranch OAuthToken: !Ref GitHubToken RunOrder: 1 Enter image description here

is it not possible to create github with version2?

asked 2 years ago276 views

1 Answer
0

When you configure a GitHub version 2 source action in AWS CloudFormation, you do not include any GitHub token information or add a webhook resource. You configure a connections resource as shown in AWS::CodeStarConnections::Connection in the AWS CloudFormation User Guide.

See the relevant Update a GitHub version 1 source action to a GitHub version 2 source action documentation.

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years 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.