From f50ecdfab974aafdb1cdbd42497e60e05f5ce272 Mon Sep 17 00:00:00 2001 From: Andriy Knysh Date: Sat, 23 Jun 2018 09:58:53 +0300 Subject: [PATCH] Separate `iam` into `root-iam` and `iam` (#18) --- aws/root-iam/main.tf | 20 +++++++++++++++++++ .../root.auto.tfvars.example | 0 aws/{iam => root-iam}/root.tf | 0 3 files changed, 20 insertions(+) create mode 100644 aws/root-iam/main.tf rename aws/{iam => root-iam}/root.auto.tfvars.example (100%) rename aws/{iam => root-iam}/root.tf (100%) diff --git a/aws/root-iam/main.tf b/aws/root-iam/main.tf new file mode 100644 index 000000000..ea7f40f3f --- /dev/null +++ b/aws/root-iam/main.tf @@ -0,0 +1,20 @@ +terraform { + required_version = ">= 0.11.2" + + backend "s3" {} +} + +variable "aws_assume_role_arn" { + type = "string" +} + +variable "namespace" { + type = "string" + description = "Namespace (e.g. `cp` or `cloudposse`)" +} + +provider "aws" { + assume_role { + role_arn = "${var.aws_assume_role_arn}" + } +} diff --git a/aws/iam/root.auto.tfvars.example b/aws/root-iam/root.auto.tfvars.example similarity index 100% rename from aws/iam/root.auto.tfvars.example rename to aws/root-iam/root.auto.tfvars.example diff --git a/aws/iam/root.tf b/aws/root-iam/root.tf similarity index 100% rename from aws/iam/root.tf rename to aws/root-iam/root.tf