Production ready deployment
Deploy web client on AWS
In this section, you will be deploying the web client on your AWS account
What do you need to get started
An AWS account (you can create an account here if you do not have one)
Let's begin!
NoteYou can directly start from Step 3 if you have installed and configured AWS CLI
Step 1 - Install or Update the AWS CLI
Confirm the installation with the following command
aws-cli/2.10.0 Python/3.11.2 Linux/4.14.133-113.105.amzn2.x86_64 botocore/2.4.5
--> expected response
For more information, click here
Step 2 - Configure the AWS CLI
For this step you would need the following from you AWS account
Access key ID
Secret Access Key
You can create or manage your access keys from the Security Credentials tab inside your AWS Console. For more information, click here
Once you have the keys run the below command
Step 3 - Setup Hyperswitch Web Client
You can now deploy the Hyperswitch web client by running the below command in the same terminal session
Takes around 10-15 min to execute successfully
On running the above command, you will get an option to configure the following
AWS region - This is the AWS region that you want your SDK to be deployed to. In case not provided, it will default to us-east-2
Option to either create a new bucket on S3 or use your existing S3 bucket - You can enter either Y (Yes) or N (No) to create a new bucket depending on your preference.
Bucket Details - If you choose to use your existing S3 bucket, you need to provide your S3 bucket location here. In case you choose to create a new S3 bucket, please provide a unique name here.
Self-hosted App server URL - This is the self hosted app server URL (eg.,
http://34.207.75.225
). If not provided, this will default tohttps://sandbox.hyperswitch.io
and will work with Hyperswitch's SaaS app server.
Depending on the API version and changes made to the web client, the web client may or may not be compatible with the SaaS app server.
Once the script is executed, you will receive an URL as the response (e.g. http://my-bucket.s3.us-east-2.amazonaws.com/HyperLoader.js
). This is the base URL of your web client.
That's it! Hyperswitch web client should be up and running on your AWS account
Verify the health of the web client at http://my-bucket.s3.us-east-2.amazonaws.com/HyperLoader.js
. You should be able to see the bundled code in your browser.
Great! Your Web Client is hosted and can be accessed by this URL.
Now that the web client is hosted, you can integrate it with your app and go live. The detailed steps follow.
Next step:
Integrate web client on your web appLast updated