From 5a4abb756ce06cf2f22494774bd170c2d860511b Mon Sep 17 00:00:00 2001 From: David Knell Date: Sat, 12 Sep 2020 19:57:53 -0400 Subject: [PATCH] prevent github OAuthToken from causing unwanted changes (#47) * prevent github OAuthToken from causing unwanted changes * Updated README.md Co-authored-by: actions-bot <58130806+actions-bot@users.noreply.github.com> --- README.md | 2 ++ docs/terraform.md | 2 ++ main.tf | 5 +++++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 2da889e..9a8e352 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,7 @@ Available targets: ``` + ## Requirements | Name | Version | @@ -249,6 +250,7 @@ Available targets: | webhook\_id | The CodePipeline webhook's ID | | webhook\_url | The CodePipeline webhook's URL. POST events to this endpoint to trigger the target | + diff --git a/docs/terraform.md b/docs/terraform.md index a5ecc33..069cb34 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -1,3 +1,4 @@ + ## Requirements | Name | Version | @@ -76,3 +77,4 @@ | webhook\_id | The CodePipeline webhook's ID | | webhook\_url | The CodePipeline webhook's URL. POST events to this endpoint to trigger the target | + diff --git a/main.tf b/main.tf index 9a971e8..1465097 100644 --- a/main.tf +++ b/main.tf @@ -330,6 +330,11 @@ resource "aws_codepipeline" "default" { } } } + + lifecycle { + # prevent github OAuthToken from causing updates, since it's removed from state file + ignore_changes = [stage[0].action[0].configuration] + } } # https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html#action-reference-CodestarConnectionSource-example