File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed
terraform/account-wide-infrastructure Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 55 workflow_dispatch :
66 inputs :
77 environment :
8- description : " Environment to deploy to"
8+ description : " Account to deploy to"
99 required : true
1010 default : " account-dev"
1111 type : environment
Original file line number Diff line number Diff line change @@ -17,3 +17,10 @@ data "aws_secretsmanager_secret_version" "emails" {
1717data "aws_secretsmanager_secret_version" "backup_destination_parameters" {
1818 secret_id = aws_secretsmanager_secret. backup_destination_parameters . name
1919}
20+
21+ data "external" "current-info" {
22+ program = [
23+ " bash" ,
24+ " ../../../scripts/get-current-info.sh" ,
25+ ]
26+ }
Original file line number Diff line number Diff line change @@ -22,3 +22,7 @@ output "athena_kms_key_arn" {
2222 description = " KMS key ARN for Athena encryption"
2323 value = var. enable_reporting ? module. prod-athena [0 ]. kms_key_arn : null
2424}
25+
26+ output "version" {
27+ value = data. external . current-info . result . version
28+ }
Original file line number Diff line number Diff line change @@ -17,3 +17,10 @@ data "aws_secretsmanager_secret_version" "emails" {
1717data "aws_secretsmanager_secret_version" "backup_destination_parameters" {
1818 secret_id = aws_secretsmanager_secret. backup_destination_parameters . name
1919}
20+
21+ data "external" "current-info" {
22+ program = [
23+ " bash" ,
24+ " ../../../scripts/get-current-info.sh" ,
25+ ]
26+ }
Original file line number Diff line number Diff line change @@ -22,3 +22,7 @@ output "athena_kms_key_arn" {
2222 description = " KMS key ARN for Athena encryption"
2323 value = var. enable_reporting ? module. test-athena [0 ]. kms_key_arn : null
2424}
25+
26+ output "version" {
27+ value = data. external . current-info . result . version
28+ }
You can’t perform that action at this time.
0 commit comments