How to use AWS account_id variable in Terraform
I want access to my AWS Account ID in terraform. I am able to get at it with aws_caller_identity per the documentation . How do I then use the variable I created? In the below case I am trying to use it in an S3 bucket name: data "aws_caller_identity" "current" {} output "account_id" { value = data.aws_caller_identity.current.account_id } resource "aws_s3_bu