terraform.aws-baseline-infra/modules/util/awscli/main.tf

17 lines
452 B
HCL

#locals {
# joined_aws_cli_command = join(" ", var.aws_cli_commands)
#}
data "external" "awscli_program" {
program = [format("%s/awsWithAssumeRole.sh", path.module)]
query = {
access_key = var.access_key
secret_key = var.secret_key
session_token = var.session_token
aws_cli_commands = var.aws_cli_commands
}
}
output awscliout {
value = jsondecode(base64decode(data.external.awscli_program.result.awscliout))
}