0
votes

I am new to Terraform and building a CI setup. When I want to create a CodePipeline that is going to be connected to a GitHub repo, do I run specific commands inside my Terraform codebase that will reach out to AWS and create the CodePipeline config/instance for me? Or would I set this CodePipeline up manually inside AWS console and hook it up to Terraform after the fact?

1

1 Answers

0
votes

do I run specific commands inside my Terraform codebase that will reach out to AWS and create the CodePipeline config/instance for me?

Yes, you use aws_codepipeline which will create new pipeline in AWS.

Or would I set this CodePipeline up manually inside AWS console and hook it up to Terraform after the fact?

You can also import existing resources to terraform.