From b565a8618f98b59aa6d807e1acad09959923d512 Mon Sep 17 00:00:00 2001 From: John Ritsema Date: Fri, 29 May 2020 10:25:16 -0400 Subject: [PATCH] updates output to support tf 12 (#53) --- env/dev/cicd.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/dev/cicd.tf b/env/dev/cicd.tf index 683b518..53acccb 100644 --- a/env/dev/cicd.tf +++ b/env/dev/cicd.tf @@ -72,7 +72,7 @@ data "aws_ecr_repository" "ecr" { # The AWS keys for the CICD user to use in a build system output "cicd_keys" { - value = "terraform state show aws_iam_access_key.cicd_keys" + value = "terraform show -json | jq '.values.root_module.resources | .[] | select ( .address == \"aws_iam_access_key.cicd_keys\") | { AWS_ACCESS_KEY_ID: .values.id, AWS_SECRET_ACCESS_KEY: .values.secret }'" } # The URL for the docker image repo in ECR