# Info: "KCL Settings for basecamp with provisioning 
# Author: "JesusPerez jesus@cloudnative.zone
# Release: "0.0.1
# Date: "1-04-2025

import aws_prov

# AWS Environment Settings, if not set will be autogenerated in 'provider_path' (data/aws_cache.yaml) 

aws_prov.Provision_aws {
    main = {
      vpc: "vpc-9cbacbf8"
      subnet: "subnet-66cf8702"
      avail_zone: "eu-west-1a"
      sg = {
        id: "sg-0b45d0ba347f28794"
        name = "sg_pub",
        # aws public security groups permissions
        perms = [
            {
              name = "sg_22",
              "protocol" = "tcp",
              fromPort = 22,
              toPort = 22,
              ranges = "[{CidrIp=0.0.0.0/0},{CidrIp=10.0.0.0/24}]"
            },
            {
              name = "sg_2022",
              "protocol" = "tcp",
              fromPort = 2022,
              toPort = 2022,
              ranges = "[{CidrIp=0.0.0.0/0},{CidrIp=10.0.0.0/24}]"
            },
            {
              name = "sg_80",
              "protocol" = "tcp",
              fromPort = 80,
              toPort = 80,
              ranges = "[{CidrIp=0.0.0.0/0},{CidrIp=10.0.0.0/24}]"
            },
            {
              name = "sg_8080",
              "protocol" = "tcp",
              fromPort = 8080,
              toPort = 8080,
              ranges = "[{CidrIp=0.0.0.0/0},{CidrIp=10.0.0.0/24}]"
            },
            {
              name = "sg_443",
              "protocol" = "tcp",
              fromPort = 443,
              toPort = 443,
              ranges = "[{CidrIp=0.0.0.0/0},{CidrIp=10.0.0.0/24}]"
            },
        ]
      }
    }
    priv = {
      vpc: "vpc-0034ccf96145e3d8b"
      subnet: "subnet-0278f7eac28761e90"
      avail_zone: "eu-west-1a"
      sg = {
        id: "sg-0fc75ea7a0300d079"
        name: "sg_priv"
        # aws private security groups permissions
        perms = [
        ]
      }
    }
}
