aboutsummaryrefslogtreecommitdiff
path: root/app/models/backends
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-03-29 06:55:08 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-03 21:58:55 +0100
commit381a12bfdd35ada598c294689e362109c213f54e (patch)
tree5fc281c83a78f488d60dc695f1b5181e99e93bd3 /app/models/backends
parent162d358d5f85fab0d0c5996069d033c8d05c4bf3 (diff)
downloadgovuk-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 'app/models/backends')
-rw-r--r--app/models/backends/terraform_aws.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/backends/terraform_aws.rb b/app/models/backends/terraform_aws.rb
index bc131ef..020f790 100644
--- a/app/models/backends/terraform_aws.rb
+++ b/app/models/backends/terraform_aws.rb
@@ -68,6 +68,8 @@ class Backends::TerraformAws < ApplicationRecord
def terraform_variables(mini_environment)
{
+ aws_access_key: aws_access_key_id,
+ aws_secret_key: aws_secret_access_key,
aws_region: aws_region,
slug: mini_environment.name.parameterize,
ssh_public_key: ssh_public_key,