# Using the module
module "api_service" {
source = "./modules/ecs_service"
service_name = "api"
# Configure Terraform
terraform {
required_version = ">= 1.6.0"
required_providers {
aws = {
# Backend configuration with S3 + DynamoDB locking
terraform {
backend "s3" {
bucket = "company-terraform-state"
key = "services/web-app/terraform.tfstate"
region = "us-east-1"