data "aws_caller_identity" "current" { }
      
      output "account_id" {
        value = "\${data.aws_caller_identity.current.account_id}"
      }
      Terraform language logo

      aws_caller_identity

      Terraform snippets

      The code creates an output variable called account_id with the value of the data.aws_caller_identity.current.account_id value.

      Shortcut: tf_aws_caller_identity

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.