Create a github connection for app runner using cloudformation

0

Hello, folks please help in finding how to create a GitHub connection in cloud formation template for app runner. Actually, I want to deploy my application on apprunner from the github repo. I can find the option while creating the apprunner to connect to github. But my question is how to do that same thing in the cloudformation.

질문됨 2년 전529회 조회
1개 답변
0

Hello,

There is no equivalent of Connection for AppRunner.

Resources:
  #You must update the connection via the console
  TestRepo:
    Type: AWS::CodeStarConnections::Connection
    Properties: 
      ConnectionName: MyGithubAccount
      ProviderType: GitHub

In the above example you could create the initial connection request via CloudFormation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarconnections-connection.html. However you would still need to change the state from pending to available via the console: https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html

So there is still some manual intervention required as this will utilize the AWS Connector for GitHub. This is not something currently supported in CloudFormation as it pertains to AppRunner. You would still need to manually create the connection via the AWS App Runner console.

Then you could use CloudFormation to create the AppRunner service: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-service.html

AWS
Ev
답변함 2년 전

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

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

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

관련 콘텐츠