Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Build SFN ARN in output (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneeth-n committed Feb 28, 2022
1 parent aef9ac8 commit 1d52d47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sfn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ resource "aws_sfn_state_machine" "sfn_state_machine" {
definition = var.config.definition
}

data "aws_region" "current" {}

data "aws_caller_identity" "current" {}

output "state_machine_arn" {
value = aws_sfn_state_machine.sfn_state_machine.id
value = "arn:aws:states:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:stateMachine:${var.config.name}"
description = "AWS step function arn"
}

0 comments on commit 1d52d47

Please sign in to comment.