Skip to content

Commit

Permalink
Update doc: aws_iam_user with force_destroy deletes IAM User Login Pr…
Browse files Browse the repository at this point in the history
…ofile (#9716)

refs: #9583
  • Loading branch information
minamijoyo authored and stack72 committed Oct 29, 2016
1 parent e97785c commit eb1a58d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_iam_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func resourceAwsIamUser() *schema.Resource {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Delete user even if it has non-Terraform-managed IAM access keys",
Description: "Delete user even if it has non-Terraform-managed IAM access keys and login profile",
},
},
}
Expand Down Expand Up @@ -167,7 +167,7 @@ func resourceAwsIamUserDelete(d *schema.ResourceData, meta interface{}) error {
}
}

// All access keys for the user must be removed
// All access keys and login profile for the user must be removed
if d.Get("force_destroy").(bool) {
var accessKeys []string
listAccessKeys := &iam.ListAccessKeysInput{
Expand Down
4 changes: 2 additions & 2 deletions website/source/docs/providers/aws/r/iam_user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ The following arguments are supported:
* `name` - (Required) The user's name. The name must consist of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: `=,.@-_.`. User names are not distinguished by case. For example, you cannot create users named both "TESTUSER" and "testuser".
* `path` - (Optional, default "/") Path in which to create the user.
* `force_destroy` - (Optional, default false) When destroying this user, destroy
even if it has non-Terraform-managed IAM access keys. Without `force_destroy`
a user with non-Terraform-managed access keys will fail to be destroyed.
even if it has non-Terraform-managed IAM access keys and login profile. Without `force_destroy`
a user with non-Terraform-managed access keys and login profile will fail to be destroyed.

## Attributes Reference

Expand Down

0 comments on commit eb1a58d

Please sign in to comment.