Skip to content

Commit

Permalink
Require MFA on all AWS accounts (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh authored Jul 16, 2018
1 parent c2de86c commit 7e12962
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions aws/iam/audit.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ module "organization_access_group_audit" {
name = "admin"
user_names = ["${var.audit_account_user_names}"]
member_account_id = "${var.audit_account_id}"
require_mfa = "true"
}
1 change: 1 addition & 0 deletions aws/iam/dev.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ module "organization_access_group_dev" {
name = "admin"
user_names = ["${var.dev_account_user_names}"]
member_account_id = "${var.dev_account_id}"
require_mfa = "true"
}
1 change: 1 addition & 0 deletions aws/iam/prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ module "organization_access_group_prod" {
name = "admin"
user_names = ["${var.prod_account_user_names}"]
member_account_id = "${var.prod_account_id}"
require_mfa = "true"
}
1 change: 1 addition & 0 deletions aws/iam/staging.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ module "organization_access_group_staging" {
name = "admin"
user_names = ["${var.staging_account_user_names}"]
member_account_id = "${var.staging_account_id}"
require_mfa = "true"
}
3 changes: 2 additions & 1 deletion aws/iam/testing.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ variable "testing_account_user_names" {
description = "IAM user names to grant access to Testing account"
}

# Provision group access to testing account. Careful! Very few people, if any should have access to this account.
# Provision group access to testing account
module "organization_access_group_testing" {
source = "git::https://github.com/cloudposse/terraform-aws-organization-access-group.git?ref=tags/0.1.2"
namespace = "${var.namespace}"
stage = "testing"
name = "admin"
user_names = ["${var.testing_account_user_names}"]
member_account_id = "${var.testing_account_id}"
require_mfa = "true"
}

0 comments on commit 7e12962

Please sign in to comment.