How do i connect AWS codepipeline to github repository using terraform

0

I tried to use the aws_codestarconnections_connection to connect it using the arn in the aws_codepipeline but i have no idea how to authenticate them this is the error i get from terraform 'creating CodePipeline (CI-comaprism-pipeline): InvalidActionDeclarationException: Action configuration for action 'Source' contains unknown configuration 'connectionArn'

Is there any steps or documentations useful? Because i can't see concise usage steps in hashicorp documentation

1 個回答
0
已接受的答案

Hi,

I haven’t done this in terraform, but I recall that in CDK, you were forced to manually generated the connection ARN through the UI first. Once you have connected GitHub with CodePipeline/CodeStar in the AWS console (not in the IaC), then the connection ARN is available and you can reference it in your IaC code.

I mentioned the above as a similar setup may be needed in console (one time action) and then you would get the connection ARN.

Not fully automated but I am not aware of similar path in terraform.

profile picture
專家
已回答 1 年前

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

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

回答問題指南