Skip to content

Commit

Permalink
add bin/, outputs.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 1, 2021
1 parent 3564037 commit 0e27840
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
17 changes: 17 additions & 0 deletions bin/find_binary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

#set -e
eval "$(jq -r '@sh "PROGRAM=\(.program)"')"

bin_path=$(which $PROGRAM 2> /dev/null)
status=$?

if [ $status == 0 ]
then
if [ ! -x $bin_path ]
then
status=1
fi
fi

jq -n --arg bin_path "$bin_path" --arg status "$status" '{"path":$bin_path,"status":$status | tonumber}'
9 changes: 9 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
output "role_arn" {
description = "Created role ARN"
value = aws_iam_role.role.arn
}

output "role_name" {
description = "Created role name"
value = aws_iam_role.role.name
}

0 comments on commit 0e27840

Please sign in to comment.