provider "aws" { region = "ap-east-1" default_tags { tags = { TerraformMode = "managed" TerraformDir = join("/", reverse(slice(reverse(split("/", path.cwd)), 0, 2))) } } } terraform { required_version = ">= 1.3.0" required_providers { aws = { source = "hashicorp/aws" version = ">= 4.40" } } }