From 844483516fedef198a330fdda3a2bc66325d2ae7 Mon Sep 17 00:00:00 2001 From: Anthony Zawacki Date: Tue, 26 Sep 2023 16:47:55 -0400 Subject: [PATCH] Added region/profile to configure providers.tf. --- examples/simple/providers.tf | 4 ++-- examples/simple/variables.tf | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/simple/providers.tf b/examples/simple/providers.tf index 5501296..ce03e7a 100644 --- a/examples/simple/providers.tf +++ b/examples/simple/providers.tf @@ -3,6 +3,6 @@ terraform { } provider "aws" { - profile = "107742151971-do2-govcloud" - region = "us-gov-east-1" + profile = var.profile + region = var.region } diff --git a/examples/simple/variables.tf b/examples/simple/variables.tf index d426407..3728eda 100644 --- a/examples/simple/variables.tf +++ b/examples/simple/variables.tf @@ -1,3 +1,13 @@ +variable "region" { + description = "AWS region" + type = string +} + +variable "profile" { + description = "AWS config profile" + type = string +} + variable "cluster_name" { description = "EKS cluster name name component used through out the EKS cluster describing its purpose (ex: dice-dev)" type = string