31 lines
827 B
HCL
31 lines
827 B
HCL
# versions.tf - Enterprise-grade version management
|
|
# This file pins provider versions for consistency across environments
|
|
|
|
terraform {
|
|
required_version = ">= 1.5.0"
|
|
|
|
required_providers {
|
|
aws = {
|
|
source = "hashicorp/aws"
|
|
version = "~> 6.3.0" # Pin to specific minor version for stability
|
|
}
|
|
}
|
|
}
|
|
|
|
# Provider configuration with default tags (enterprise best practice)
|
|
provider "aws" {
|
|
region = var.aws_region
|
|
|
|
# Default tags applied to all resources (enterprise requirement)
|
|
default_tags {
|
|
tags = {
|
|
Environment = "production"
|
|
Project = "nvhi-atsila"
|
|
ManagedBy = "terraform"
|
|
Owner = "devops-team"
|
|
CostCenter = "engineering"
|
|
SecurityReview = "2024-Q4"
|
|
DataClassification = "internal"
|
|
}
|
|
}
|
|
} |