AWS Infrastructure Setup and AWS CLI Configuration
Set up your EC2 instance and configure the AWS CLI to authenticate with Hivel's container registry.
Provision EC2 Instance
In AWS Console, launch a new EC2 instance.
Choose Ubuntu 22.04 LTS or later.
Instance type: t3.xlarge (4 vCPU, 16GB RAM).
Storage: 50GB gp3 EBS volume.
Security group: Allow inbound on ports 22, 80, 443, 3000, 4317 (required only if integrating Claude Code) and 5432.
Note the instance's public/private IP address.
SSH into the instance to confirm access.
Install Required Software
SSH into your instance and run:
Verify Software Installation
After logging back in, each --version command should print a version string with no errors. If docker commands still ask for sudo after logging back in, run newgrp docker or reboot the instance.
Configure AWS CLI
Run
aws configureon the VM.Enter the values when prompted:
AWS Access Key ID: [Hivel-provided access key]
AWS Secret Access Key: [Hivel-provided secret key]
Default region name:
ap-south-1Default output format:
json
Verify AWS CLI Configuration
This should return a JSON object with your AWS account details (Account, UserId, Arn). If it fails with "Unable to locate credentials," re-run aws configure and verify with cat ~/.aws/credentials.
Last updated