# Terraform configuration for Prometheus MCP infrastructure
# This creates a complete test environment with VPC, EKS, AMP, ECR, and Bastion
terraform {
required_version = ">= 1.5.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.25"
}
tls = {
source = "hashicorp/tls"
version = "~> 4.0"
}
}
}
provider "aws" {
region = var.aws_region
default_tags {
tags = {
Project = "prometheus-mcp"
Environment = "test"
ManagedBy = "terraform"
}
}
}
provider "kubernetes" {
host = module.eks.cluster_endpoint
cluster_ca_certificate = base64decode(module.eks.cluster_ca_certificate)
exec {
api_version = "client.authentication.k8s.io/v1beta1"
command = "aws"
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
}
}
# Data sources for availability zones
data "aws_availability_zones" "available" {
state = "available"
}
data "aws_caller_identity" "current" {}