This repository contains a diagram representing the architecture of OpenShift Hybrid Cloud Platform (HCP) using AWS services. The diagram is generated using the diagrams Python library.
The architecture consists of the following main components:
- ROSA HCP Service Account: Hosted Control Planes managed by Red Hat OpenShift Service on AWS (ROSA).
- Customer Account: Includes VPCs, subnets, worker nodes, NAT gateways, internet gateways, and private links.
- Egress VPC: Contains private subnets, Route 53 Inbound Resolver, NAT Gateway, and Internet Gateway.
- AWS Transit Gateway: Facilitates communication between different VPCs and on-premises infrastructure.
- On-Premises: Represents the on-premises infrastructure connected via VPN.
hcp.py: The main script to generate the architecture diagram.README.md: This documentation file.
- Python 3.6 or higher
diagramslibrary
-
Clone the repository:
git clone https://github.com/CSA-RH/Diagrams-as-a-code.git cd Diagrams-as-a-code -
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate -
Install the required dependencies:
pip install -r requirements.txt
To generate the diagram, run the following command:
python hcp.py