diff options
author | Christopher Baines <mail@cbaines.net> | 2018-03-29 06:55:08 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-03 21:58:55 +0100 |
commit | 381a12bfdd35ada598c294689e362109c213f54e (patch) | |
tree | 5fc281c83a78f488d60dc695f1b5181e99e93bd3 /terraform | |
parent | 162d358d5f85fab0d0c5996069d033c8d05c4bf3 (diff) | |
download | govuk-mini-environment-admin-381a12bfdd35ada598c294689e362109c213f54e.tar govuk-mini-environment-admin-381a12bfdd35ada598c294689e362109c213f54e.tar.gz |
Provide the AWS access key and secret as variables
To terraform.
Diffstat (limited to 'terraform')
-rw-r--r-- | terraform/aws/mini_environment.tf | 10 |
1 files changed, 10 insertions, 0 deletions
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}" } |