Created by
Chafik Belhaoues

AWS VPC with subnet and security groups on 2 AZs

    AWS,VPC,Subnet,EIP,Network,NAT gateway,Network ACL
    AWS VPC with subnet and security groups on 2 AZs
    ## Description This architecture allows you create basic networking components that you can use later to host different services, instances, databases, applications... It's a 2 AZ architecture in one region and inside one VPC, but you can add another AZ or just clone an existing one with its components. The traffic is routed from internet to the subnets of the first AZ just as an example of routing. You can change it to fit your requirements, while the elastic IPs provide direct access to NAT gateway. **N.B:** - The Terraform code is automatically generated with best practices and contains variables that you can customize to fir your needs. - You have full control to change, add, delete resources or their configuration. The newly generated code will reflect these changes. - You can replace some resources with Terraform modules. > terraform apply status: successful ## Architecture components Here are all the components of this architecture: - VPC - Subnets - Internet gateway - Route table and route table associations in every subnet - Security group with its rule(s) - NAT gateways - Network ACLs - Elastic IPs (eip). ## Requirements | Name | Configuration | | --- | --- | | Terraform | all versions | | Provider | AWS | | Provider version | >= 5.33.0 | | Access | Admin access | ## How to use the architecture Clone the architecture and modify the following variables according to your needs: | Variable | Description | | --- | --- | | private_subnet_cidr | The CIDR of the private subnet | | public_subnet_cidr | The CIDR of the public subnet | | vpc_cidr_block | The networking CIDR of the VPC | | vpc_name | The name of the VPC. Injected in the tags | | tags | Default tags to be added to all resources | **N.B:** Feel free to remove the resources that are not relevant to your use-case. ## Maintainers You can reach out to these maintainers if you need help or assistance: - [Brainboard team](mailto:support@brainboard.co)

    It’s up to you now to build great things.