For AWS boxes first create an instance profile
aws iam create-role --role-name aerospike-par-eng-aerolab \
--assume-role-policy-document '{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}'aws iam attach-role-policy --role-name aerospike-par-eng-aerolab \
--policy-arn arn:aws:iam::aws:policy/AmazonEC2FullAccess
aws iam attach-role-policy --role-name aerospike-par-eng-aerolab \
--policy-arn arn:aws:iam::aws:policy/AmazonElasticFileSystemReadOnlyAccess
aws iam attach-role-policy --role-name aerospike-par-eng-aerolab \
--policy-arn arn:aws:iam::aws:policy/AWSPriceListServiceFullAccessaws iam create-instance-profile --instance-profile-name aerospike-par-eng-aerolabaws iam add-role-to-instance-profile --instance-profile-name aerospike-par-eng-aerolab \
--role-name aerospike-par-eng-aerolabNow, export the instance profile name so it will be used in the bootstrap script, as well as configure aerolab to use your aws credentials
Make sure aws is configured to use us-east-1
aws configureexport AWS_INSTANCE_PROFILE=aerospike-par-eng-aerolab
aerolab config backend -t aws -r us-east-1./project-scripts/jumpbox-bootstrapYou can then log into the cluster using the commands on the screen.
- Move into the graviton-theseus folder
cd /workspace/graviton-theseus - Configure project overrides
vi ./project-ansible/overrides.yaml
- Configure the jumpbox
./00-configure-jumpbox
- Reboot the jumpbox
Graviton 2 cluster:
source project-config/g2_targetGraviton 4 cluster:
source project-config/g4_target./01-deploy-target-cluster./02-deploy-lgs-cluster./10-hydrate./11-run-workloadpar-exec🔬 -- 99-destroy