From a3390188fe6f20b11284dc55a556c97d1bc77ed1 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Tue, 9 Jul 2019 01:48:34 -0400 Subject: [PATCH] docs/resource/aws_iam_user: Note force_destroy argument requirement for modifying name/path with aws_iam_policy_attachment Reference: https://github.com/terraform-providers/terraform-provider-aws/issues/5417 --- website/docs/r/iam_user.html.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/r/iam_user.html.markdown b/website/docs/r/iam_user.html.markdown index a78d4e4f9735..626e3e0c5f64 100644 --- a/website/docs/r/iam_user.html.markdown +++ b/website/docs/r/iam_user.html.markdown @@ -10,6 +10,8 @@ description: |- Provides an IAM user. +~> *NOTE:* If policies are attached to the user via the [`aws_iam_policy_attachment` resource](/docs/providers/aws/r/iam_policy_attachment.html) and you are modifying the user `name` or `path`, the `force_destroy` argument must be set to `true` and applied before attempting the operation otherwise you will encounter a `DeleteConflict` error. The [`aws_iam_user_policy_attachment` resource (recommended)](/docs/providers/aws/r/iam_user_policy_attachment.html) does not have this requirement. + ## Example Usage ```hcl