Skip to content

Commit a10ce74

Browse files
committed
[NRL-1938] Add deployment version and caller id to TF outputs
1 parent cff34d3 commit a10ce74

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

terraform/account-wide-infrastructure/mgmt/data.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ data "aws_caller_identity" "current" {}
22

33
data "aws_region" "current" {}
44

5+
data "external" "current-info" {
6+
program = [
7+
"bash",
8+
"../../../scripts/get-current-info.sh",
9+
]
10+
}
11+
512
data "aws_dynamodb_table" "terraform_state_lock" {
613
name = "${local.project}--terraform-state-lock"
714
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
output "version" {
2+
value = data.external.current-info.result.version
3+
}
4+
5+
output "caller_identity" {
6+
value = data.aws_caller_identity.current
7+
}

0 commit comments

Comments
 (0)