跳至內容

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?

已提問 2 年前檢視次數 302 次

1 個回答
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
專家

已回答 2 年前

專家

已審閱 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。