71 lines
1.8 KiB
Plaintext
71 lines
1.8 KiB
Plaintext
# 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: "?"
|
|
subnet: "?"
|
|
avail_zone: "eu-south-2"
|
|
sg = {
|
|
id: "?"
|
|
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: "?"
|
|
subnet: "?"
|
|
avail_zone: "eu-south-2"
|
|
sg = {
|
|
id: "?"
|
|
name: "sg_priv"
|
|
# aws private security groups permissions
|
|
perms = [
|
|
]
|
|
}
|
|
}
|
|
}
|