Skip to content

Commit

Permalink
fix: ignores password_reset_required change to support changes in AWS…
Browse files Browse the repository at this point in the history
… provider 4.x (#24)

Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
  • Loading branch information
gberenice and cloudpossebot authored Jul 20, 2022
1 parent 40dbe1a commit 343506e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ version-resolver:
- 'bugfix'
- 'bug'
- 'hotfix'
- 'no-release'
default: 'minor'

categories:
Expand Down
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
":preserveSemverRanges"
],
"labels": ["auto-update"],
"dependencyDashboardAutoclose": true,
"enabledManagers": ["terraform"],
"terraform": {
"ignorePaths": ["**/context.tf", "examples/**"]
}
}

18 changes: 18 additions & 0 deletions examples/complete/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
terraform {
required_version = ">= 0.13.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 2.0"
}
template = {
source = "hashicorp/template"
version = ">= 2.0"
}
null = {
source = "hashicorp/null"
version = ">= 2.0"
}
}
}
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ resource "aws_iam_user_login_profile" "default" {
password_length = var.password_length
password_reset_required = var.password_reset_required
depends_on = [aws_iam_user.default]

lifecycle {
ignore_changes = [password_reset_required]
}
}

resource "aws_iam_user_group_membership" "default" {
Expand Down

0 comments on commit 343506e

Please sign in to comment.