vpc

FlexibleEngineCloud/vpc/flexibleengine

Terraform Module HCL FLEXIBLEENGINE

Terraform module which creates VPC resources on Flexible Engine

Install
module "vpc" {
source = "FlexibleEngineCloud/vpc/flexibleengine"
version = "2.1.1"
}
plain text: /constructs/tfmod-flexibleenginecloud-vpc-flexibleengine/install.txt
⭐ Source on GitHub 📦 Registry page
README

Flexible Engine VPC Terraform Module --- Terraform module which creates VPC, subnets, NAT gateway resources and SNAT rules on Flexible Engine Terraform Version > Important Note regarding update from v1.2.0 to v1.3.0 > If you use a NAT Gatewy and SNAT rules, switching module version from v1.2.0 to v1.3.0 will delete the current SNAT rule public IP and create a new one. > > Thus, ECSs outbound public IP will be replaced by a new one. > > But now, you can reserve public IP (EIP) thanks to terraform-flexibleegine-eip module and assign it to your SNAT rules with this terraform-flexibleegine-vpc module. Module Version > Important Notes regarding update module from v2.0.1 and earlier to v 2.1.0 and later > A compatibility break has been introduced in new module version 2.1.0. The subnets list is

Inputs (15)
NameTypeDescriptionDefault
existing_eip_idstringID of an existing EIP required
eip_bandwidthnumberBandwidth of the EIP in Mbit/s required
secondary_dnsstringIP address of secondary DNS"100.126.0.41"
new_eipboolWhether or not attach new Elastic IP (public IP) to NAT Gatewayfalse
eip_pool_namestringName of eip pool"admin_external_net"
vpc_cidrstringThe CIDR for the VPC. Default value is a valid CIDR, but not acceptable by Flexi"0.0.0.0/0"
vpc_subnetslist(object({ subnet_name json description of subnets to create[]
primary_dnsstringIP address of primary DNS"100.125.0.41"
nat_gateway_namestringName of the NAT gateway""
create_vpcboolControls if VPC should be created (it affects almost all resources)true
vpc_namestringName of the VPC to create"vpc-main"
vpc_snat_subnetslistlist of snat subnet names[]
enable_nat_gatewayboolShould be true if you want to provision NAT Gateways for your networksfalse
nat_gateway_typenumberType of NAT gateway. 4 values (1,2,3,4). 1 is small type, and 4 the Extra-large"1"
nat_gateway_subnet_namestringName of subnet used by the NAT Gateway""
Outputs (6)
snat_eip — The Public IP adress of the SNAT rule
vpc_id — ID of the created vpc
vpc_name — Name of the created vpc
subnet_ids — list of IDs of the created subnets
gateway_id — id of NAT gateway
network_ids — list of IDs of the created networks
Resources (5)
flexibleengine_nat_gateway_v2flexibleengine_nat_snat_rule_v2flexibleengine_vpc_eip_v1flexibleengine_vpc_subnet_v1flexibleengine_vpc_v1
Topics & Tags
terraform-module
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.1
Cloud FLEXIBLEENGINE
★ Stars3
Forks7
Total downloads2.8k
Inputs15
Outputs6
Resources5
Examples2
LicenseApache-2.0
NamespaceFlexibleEngineCloud
Updated