Skip to content

Commit b565a86

Browse files
authored
updates output to support tf 12 (#53)
1 parent 501afa4 commit b565a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

env/dev/cicd.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ data "aws_ecr_repository" "ecr" {
7272

7373
# The AWS keys for the CICD user to use in a build system
7474
output "cicd_keys" {
75-
value = "terraform state show aws_iam_access_key.cicd_keys"
75+
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 }'"
7676
}
7777

7878
# The URL for the docker image repo in ECR

0 commit comments

Comments
 (0)