Terraform AWS account_id

https://stackoverflow.com/questions/68397972/how-to-use-aws-account-id-variable-in-terraform

data "aws_caller_identity" "current" {}

locals {
    account_id = data.aws_caller_identity.current.account_id
}

resource "aws_s3_bucket" "test-bucket" {
  bucket = "test-bucket-${local.account_id}"
}