📜  terraform data aws account id - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:45.259000             🧑  作者: Mango

代码示例1
data "aws_caller_identity" "current" {}

output "account_id" {
  value = data.aws_caller_identity.current.account_id
}

output "caller_arn" {
  value = data.aws_caller_identity.current.arn
}

output "caller_user" {
  value = data.aws_caller_identity.current.user_id
}