How it works...

In this recipe, pnda-cli.py first checks whether the pnda_env.yaml file exists, and reads the parameters from it. It uses boto's EC2 interface (http://boto.cloudhackers.com/en/latest/ec2_tut.html) to run many tasks such as connecting to the region, initializing the EC2 instances, and configuring them. Expect this to take a few minutes, also depending on the connectivity between your mirror and the EC2 instance. Thus it might be a good idea to actually create your PNDA cluster in a region that is closest to you to minimize the latency.

In this recipe, we learned how to configure PNDA in AWS. In this process, we also learned how useful Python can be for such complex configuration tasks as we used it to read the .yaml configuration file and configure an AWS cluster based on our configurations.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.185.196