https://github.com/juspay/hyperswitch-cdk.git
โ ๏ธ DEPRECATION NOTICE
This repository is deprecated and is no longer actively maintained. Please do not use this for new deployments.
For current deployment options, please refer to the Terraform equivalent: ๐ https://github.com/juspay/hyperswitch-suite
This guide outlines the process for deploying a comprehensive HyperSwitch stack on AWS, leveraging the power and flexibility of the AWS Cloud Development Kit (CDK). Follow our step-by-step installation instructions to get HyperSwitch up and running efficiently.
Before you can use this script, you need to have the following installed:
git clone https://github.com/juspay/hyperswitch-cdk.git
cd hyperswitch-cdk
export AWS_DEFAULT_REGION=<Your AWS_REGION> // e.g., export AWS_DEFAULT_REGION=us-east-2
export AWS_ACCESS_KEY_ID=<Your Access_Key_Id> // e.g., export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
export AWS_SECRET_ACCESS_KEY=<Your Secret_Access_Key> // e.g., export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
export AWS_SESSION_TOKEN="<Your AWS_SESSION_TOKEN>" //optional
Install all the services provided by hyperswitch
bash install.sh
Install only card vault as a seperate service
bash install-locker.sh
Install only Image builder as a seperate service
bash deploy_imagebuilder.sh
Standalone deployment script to deploy Hyperswitch on AWS quickly
curl https://raw.githubusercontent.com/juspay/hyperswitch/main/aws/hyperswitchawssetup.sh | bash
If you are creating a card vault, you will need to unlock it so that it can start saving/retrieving cards. The CDK script creates an external and internal jump for security purposes, meaning you can only access the Card vault via the internal jump server. Follow the steps below to unlock the card vault:
curl https://raw.githubusercontent.com/juspay/hyperswitch-cdk/main/locker.sh | bash
sh external_jump.sh
sh internal_jump.sh
sh unlock_locker.sh
The imagebuilder component builds images for outgoing and incoming proxy(Squid and Envoy). Optionally you can choose to have hardened base image. You can buy the base image from here.
Currently supported platforms:
bash deploy_image_builder.sh
For more information about each component and the full stack deployment, please refer to the HyperSwitch Open Source Documentation.
If you encounter any issues or need further assistance, please create an issue in this repository.