2023-11-23 17:15:34 +08:00
|
|
|
provider "aws" {
|
|
|
|
region = var.aws-region
|
|
|
|
default_tags {
|
|
|
|
tags = {
|
|
|
|
Environment = var.environment
|
|
|
|
Project = var.project
|
|
|
|
Application = var.application
|
|
|
|
TerraformMode = "managed"
|
2023-11-23 17:32:38 +08:00
|
|
|
LastUpdatedOn = formatdate("YYYY-MM-DD", timestamp())
|
2023-11-23 17:15:34 +08:00
|
|
|
TerraformDir = "${reverse(split("/", path.cwd))[1]}/${reverse(split("/", path.cwd))[0]}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
terraform {
|
|
|
|
required_version = ">= 1.3"
|
|
|
|
required_providers {
|
|
|
|
aws = {
|
|
|
|
source = "hashicorp/aws"
|
|
|
|
version = ">= 5.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|