This template provisions a multi-tier architecture in AWS EU (West-1), creating separate VPCs for Bastion and Production environments with subnets, routing, and EC2 instances.
-
BstEuVPC VPC: This is the Bastion VPC located in Ireland (EU). It will host all bastion servers in Europe, providing secure access to private resources.
- CIDR Block:
10.10.1.0/24
- CIDR Block:
-
ProdEuVPC VPC EU: This VPC is designated for production resources, ensuring secure and scalable hosting for applications.
- CIDR Block:
10.10.2.0/24
- CIDR Block:
-
Private:
Bastion Private Subnet 1a
:10.10.1.0/26
(eu-west-1a)Bastion PrivateSubnet 1b
:10.10.1.64/26
(eu-west-1b)
-
Public:
Bastion Public Subnet 1a
:10.10.1.128/26
(eu-west-1a)Bastion Public Subnet 1b
:10.10.1.192/26
(eu-west-1b)
-
Private:
ProductionPrivateSubnet1a
:10.10.2.0/26
(eu-west-1a)ProductionPrivateSubnet1b
:10.10.2.64/26
(eu-west-1b)
-
Public:
ProductionPublicSubnet1a
:10.10.2.128/26
(eu-west-1a)ProductionPublicSubnet1b
:10.10.2.192/26
(eu-west-1b)
- SGbstjumpbox: SSH access to Bastion from a specific IP.
- SGEUProdWebServer: HTTPS and SSH access in Production.
- SGEUProdMariaDB: MySQL access from web server and SSH from jump box.
- BstJumpServerInstance: Bastion EC2 instance in the Bastion VPC.
- ProdWebServerInstance: Web server in Production VPC.
- ProdSQLServerInstance: Database instance in Production’s private subnet
InternetGateway: Allows internet access for VPCs
This template serves as a foundational setup for a network infrastructure on AWS, ideal for scenarios requiring a bastion host to manage access to production resources.
Christian Magalhaes