network

package
v0.0.0-...-0fd05cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInternetGateway

func NewInternetGateway(stack *stack.MyStack)

This method will create the Internet Gateway

Internet gateway ensure that our VPC will be able to configure routes to access the internet

func NewNatGateway

func NewNatGateway(stack *stack.MyStack)

This function will create two nat gateways

The NAT Gateway will be responsible to configure the internet Egress for the private subnets it mens that, the private subnet will be able to have outbound traffic to internet

func NewPublicApplicationLoadBalancer

func NewPublicApplicationLoadBalancer(stack *stack.MyStack)

This method will create the public application load balancer

The application load balancer will be exposed in the internet and will be responsible to delivery all the request to the HTTP services that are deployed in the private subnet

func NewRouteTables

func NewRouteTables(stack *stack.MyStack)

This method will create the route tables for each subnet and associate the route tables with than

The route table bound the internet gateway to the public subnets and the nat gateway to the private subnets

func NewServiceDiscoveryPrivateNamespace

func NewServiceDiscoveryPrivateNamespace(stack *stack.MyStack)

This method will create the Discovery Private Namespace

Private Namespace allow ECS Services to communicate between than

func NewSubnets

func NewSubnets(stack *stack.MyStack)

This function will create 4 subnets under our VPC, two private and two publics

The private subnets will be routed through the NAT Gateway and the public will be routed through the internet gateway

func NewVpc

func NewVpc(stack *stack.MyStack)

This method will create the VPC

VPC is the internal network that all services will be configured in it

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL