-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws iam group and group membership - delete order of operations failure #3295
Comments
apparently this has an intermittent OOO failure on create, too...
|
Steps to reproduce in #3341 |
Hello – I've been trying to reproduce this issue using the latest Terraform (v0.6.6) and have not been successful. I've used the below config: provider "aws" {
region = "us-west-2"
}
resource "aws_iam_group" "group" {
name = "test-group"
path = "/"
}
resource "aws_iam_user" "user" {
name = "test-user-one"
path = "/"
}
resource "aws_iam_user" "user_two" {
name = "test-user-two"
path = "/"
}
resource "aws_iam_user" "user_three" {
name = "test-user-three"
path = "/"
}
resource "aws_iam_group_membership" "team" {
name = "tf-testing-group-membership"
users = [
"${aws_iam_user.user.name}",
"${aws_iam_user.user_two.name}",
"${aws_iam_user.user_three.name}",
]
group = "${aws_iam_group.group.name}"
} If I remove the I'm going to close this for now. If you feel this is not correct or I'm not following what you're describing, please let me know. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
When trying to delete a group and it's group membership, terraform fails on the first apply because it tries to remove the group, then removes the membership.
The membership must be removed before the group, not the other way around.
A second apply will get the group removed, but that's far from good behavior. :)
tf, tfstate, plan, and 2 applies here: https://gist.github.com/keen99/355669346ab19cb9a3e9
running Terraform v0.6.3
The text was updated successfully, but these errors were encountered: