Deploying this Quick Start will create highly available Chainlink nodes using with default parameters and a provided blockchain.
- Create a key pair in your preferred region.
- If using a domain and SSL certificate to access your Chainlink node web GUI, create a public certificate using Amazon Certificate Manager in your preferred region.
- If using an existing VPC, make sure that it contains two public subnets, two private subnets, internet gateway, NAT gateways, and route tables.
- Run create-env.sh to create the environment variable file for your Chainlink node
cd $HOME/.chainlink/ && ./create-env.sh \
${chainNetwork} \
${ethUrl} \
${psqlUser} \
$(aws secretsmanager get-secret-value --secret-id DBSecret --query "SecretString" --output text) \
${psqlHostname} \
${psqlPort} \
${psqlDb}
- Run create-password.sh to create your Chainlink node keystore password file
cd $HOME/.chainlink/ && ./create-password.sh \
$(aws secretsmanager get-secret-value --secret-id WalletSecret --query "SecretString" --output text)
- Run create-api.sh to create your Chainlink node API file
cd $HOME/.chainlink/ && ./create-api.sh \
${apiUser} \
$(aws secretsmanager get-secret-value --secret-id ApiSecret --query "SecretString" --output text)
latestimage=$(curl -s -S "https://registry.hub.docker.com/v2/repositories/smartcontract/chainlink/tags/" | jq -r '."results"[]["name"]' | head -n 1)
cd /home/ec2-user/.chainlink && docker run -d \
--log-driver=awslogs \
--log-opt awslogs-group=ChainlinkLogs \
--restart unless-stopped \
--name chainlink \
-p 6688:6688 \
-v /home/ec2-user/.chainlink:/chainlink \
--env-file=/home/ec2-user/.chainlink/.env smartcontract/chainlink:$latestimage local n \
-p /chainlink/.password
-a /chainlink/.api