Advanced users can also launch BlueCat AWS Virtual Appliance instances using the AWS command line interface.
In order to launch instances using the AWS CLI, you must install the AWS CLI and
configure it using the AWS Access Key ID and AWS Secret Access Key. For
detailed information about installing and configuring the AWS CLI, refer to the
following Amazon documentation:
- http://docs.aws.amazon.com/cli/latest/userguide/installing.html
- http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration
Before you launch the virtual appliance:
- Create the YAML license. For more information, refer to Entering the license for BlueCat AWS Virtual Appliances.
To launch BlueCat virtual appliance using the AWS CLI, run the
following
command:
aws ec2 run-instances --image-id <ami-id> --count 1 --instance-type <type.size> --key-name <aws key-pair> --security-group-ids <secure group id> --subnet-id <subnet id> --private-ip-address <ip address> --user-data file://path_to_your_license_file/license.txt
For
example:
aws ec2 run-instances --image-id ami-20b47640 --count 1 --instance-type t2.large --key-name exampleName --security-group-ids sg-9bd625fd --subnetid subnet-d2ca49b6 --private-ip-address 192.0.2.55 --user-data file:// path_to_your_license_file/license.txt
where
license.txt has the following
content:
#cloud-config bluecat_license: key: "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
Note: #cloud-config
must be in a valid YAML format. Spaces are required before line 3 (Activation
key).