Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request #11 from trussworks/cblkwell-172510884-fixing-bug-…
Browse files Browse the repository at this point in the history
…adding-README

Fixing a bug with a wrong variable name and adding example to readme
  • Loading branch information
cblkwell authored May 6, 2020
2 parents bd5d8c6 + cf07e31 commit 436774c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,18 @@ resource "aws_organizations_organizational_unit" "suspended" {
module "org_scps" {
source = "trussworks/org-scp/aws"
version = "~> 1.4.0"
version = "~> 1.6.1"
# applies to all accounts
# - don't allow all accounts to be able to leave the org
# - don't allow access to the root user
# - require s3 objects be encrypted
# - restrict region-specific operations to us-west-2
deny_root_account_target_ids = [aws_organizations_organizational_unit.root.id]
deny_leaving_orgs_target_ids = [aws_organizations_organizational_unit.root.id]
require_s3_encryption_target_ids = [aws_organizations_organizational_unit.root.id]
allowed_regions = ["us-west-2"]
restrict_regions_target_ids = [aws_organizations_organizational_unit.root.id]
# applies to accounts that are not managing IAM users
# - don't allow creating IAM users or access keys
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ data "aws_iam_policy_document" "restrict_regions" {
condition {
test = "StringNotEquals"
variable = "aws:RequestedRegion"
values = var.restrict_allowed_regions
values = var.allowed_regions
}
}
}
Expand Down

0 comments on commit 436774c

Please sign in to comment.