provider "aws" { region = "us-east-1" } locals { # Define the path to the directory containing your Terraform files base_dir = path.root } resource "aws_s3_bucket" "example_bucket" { bucket = "example-bucket-${local.base_dir}" acl = "private" }