./launch-s0-instance.sh fails on amazon 2
Closed this issue · 0 comments
JusSergey commented
It fails with an error
[elastio@amazon2-amd64-test scripts]$ ./launch-s0-instance.sh -s 123 -k rinastestkms -b rinastestbucket -p admin
Validating bucket "rinastestbucket"...
Validating KMS key alias "rinastestkms"...
./launch-s0-instance.sh: line 306: jq: command not found
The AWS CLI is configured to use the 'eu-central-1' region. And an ec2 instance will be launched in this region.
However the KMS key 'rinastestkms' is located in the different region ''.
Please chouse another KMS key in the 'eu-central-1' region or change current region to the ''.
NOTE: The launched ec2 instance, s3 bucket and KMS key should be in the same region!
Looks like the util jq
is not installed, so, the script should handle it and install it if it's not already installed