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