Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Commit

Permalink
Fix user disable (#11)
Browse files Browse the repository at this point in the history
* Fix user disable
* Update chamber user module
  • Loading branch information
goruha authored Feb 18, 2019
1 parent 061faed commit 6771387
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data "aws_iam_policy_document" "default" {
}

module "chamber_user" {
source = "git::https://github.com/cloudposse/terraform-aws-iam-system-user.git?ref=tags/0.3.0"
source = "git::https://github.com/cloudposse/terraform-aws-iam-system-user.git?ref=tags/0.4.1"
namespace = "${var.namespace}"
stage = "${var.stage}"
name = "${var.name}"
Expand All @@ -31,6 +31,7 @@ module "chamber_user" {
}

resource "aws_iam_user_policy" "chamber_user" {
count = "${var.enabled == "true" ? 1 : 0}"
name = "${module.chamber_user.user_name}"
user = "${module.chamber_user.user_name}"
policy = "${data.aws_iam_policy_document.default.json}"
Expand Down

0 comments on commit 6771387

Please sign in to comment.