## Resource terragrunt file

### Will include parent terragrunt file depending on environment name.
include "root" {
  path   = find_in_parent_folders("terragrunt-localstack.hcl")
  expose = true
}
dependency "network" {
  config_path = "../../../vpc"
}
inputs = {
  create                = true
  environment           = "local"
  endpoint_type         = "Interface"
  endpoint_name         = "api-gateway"
  service               = "execute-api"
  private_dns_enabled   = "false"
  vpc_id                = dependency.network.outputs.vpc_id
  subnet_ids            = dependency.network.outputs.private_subnets_id_list
  create_security_group = true
  rules = {
    https = {
      type        = "ingress"
      from_port   = 443
      to_port     = 443
      protocol    = "tcp"
      cidr_blocks = ["0.0.0.0/0"]
      description = "Testing"
    }
  }
}

terraform {
  source = "git::git@github.com:perimeter-81/devops-terraform-modules.git//modules/vpc_endpoint?ref=main"
}
