Both pipelines (with and without webhook) follow this logic:
- Create roles and policies in AWS.
- Create resources in AWS.
- Import secrets/keys/tokens from a
.tfvars
file. - Create a CodePipeline using all the resources and roles.
Since we're using file ./pipeline-webhook.tf
, the pipleline without webhook is saved in ./test/pipeline.tf
to make sure terraform won't execute it.
- Running terraform in automation, using
terraform plan
andterraform apply
, see here. - Use input variables, read HashiCorp's guide.
- For AWS references, use HashiCorp's syntax.