From 381a12bfdd35ada598c294689e362109c213f54e Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 29 Mar 2018 06:55:08 +0100 Subject: Provide the AWS access key and secret as variables To terraform. --- terraform/aws/mini_environment.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'terraform') diff --git a/terraform/aws/mini_environment.tf b/terraform/aws/mini_environment.tf index bf3a356..06bc0f3 100644 --- a/terraform/aws/mini_environment.tf +++ b/terraform/aws/mini_environment.tf @@ -6,6 +6,14 @@ variable "slug" { type = "string" } +variable "aws_access_key" { + type = "string" +} + +variable "aws_secret_key" { + type = "string" +} + variable "aws_region" { type = "string" } @@ -19,6 +27,8 @@ variable "start_command" { } provider "aws" { + access_key = "${var.aws_access_key}" + secret_key = "${var.aws_secret_key}" region = "${var.aws_region}" } -- cgit v1.2.3