This is a simple and automated way to set up XDC subnets with script
This script is used to deploy a subnet on XinFin Network.
- Docker installed on your machine
- Bash shell (Unix shell)
- Git installed on your machine
-
Clone this repository to your local machine.
-
Navigate to the /scripts directory containing the
deploy_subnet.sh
script. -
Run the script with your wallet address and private key as arguments:
./deploy_subnet.sh YourWalletAddress YourWalletPrivateKey networkRPC
This is an AWS CloudFormation template that deploys an EC2 Auto Scaling Group with a Load Balancer in an existing VPC.
- AWS Account
- Existing VPC and VPC Subnets
- AWS CLI installed and configured
ExistingVpcId
: The ID of an existing VPC.LoadBalancerSubnets
: The IDs of the subnets where the Load Balancer will be deployed.Address
: The address to be passed to the shell script.MinSize
: The minimum size of the auto scaling group.MaxSize
: The maximum size of the auto scaling group.DesiredCapacity
: The desired capacity of the auto scaling group.
-
Save the template to a file, for example
template.yaml
. -
Run the following command to create a CloudFormation stack:
aws cloudformation create-stack --stack-name MyStack --template-body file://template.yaml --parameters ParameterKey=ExistingVpcId,ParameterValue=<YourVPCId> ParameterKey=LoadBalancerSubnets,ParameterValue=<YourSubnetIds> ParameterKey=Address,ParameterValue=<YourAddress> ParameterKey=MinSize,ParameterValue=<YourMinSize> ParameterKey=MaxSize,ParameterValue=<YourMaxSize> ParameterKey=DesiredCapacity,ParameterValue=<YourDesiredCapacity>