Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is a collection of reusable root modules for CloudPosse AWS accounts.
Use the `terraform-root-modules` Docker image as the base image in the application `Dockerfile`, and copy the modules from `/aws` folder into `/conf` folder

```dockerfile
FROM cloudposse/terraform-root-modules:0.3.1 as terraform-root-modules
FROM cloudposse/terraform-root-modules:0.3.2 as terraform-root-modules

FROM cloudposse/geodesic:0.9.18

Expand Down
2 changes: 2 additions & 0 deletions aws/accounts/testing.auto.tfvars.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
testing_account_name="testing"
testing_account_email="info+testing@cloudposse.co"
21 changes: 21 additions & 0 deletions aws/accounts/testing.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
variable "testing_account_name" {
type = "string"
description = "Testing account name"
default = "testing"
}

variable "testing_account_email" {
type = "string"
description = "Testing account email"
}

resource "aws_organizations_account" "testing" {
name = "${var.testing_account_name}"
email = "${var.testing_account_email}"
iam_user_access_to_billing = "${var.account_iam_user_access_to_billing}"
role_name = "${var.account_role_name}"
}

output "testing_account_arn" {
value = "${aws_organizations_account.testing.arn}"
}
2 changes: 2 additions & 0 deletions aws/iam/testing.auto.tfvars.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
testing_account_id=""
testing_account_user_names=["", "",]
19 changes: 19 additions & 0 deletions aws/iam/testing.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
variable "testing_account_id" {
type = "string"
description = "Testing account ID"
}

variable "testing_account_user_names" {
type = "list"
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.
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}"
}