Tips and Troubleshooting
This page contains reference information that might be useful as you work through the workshop.
Troubleshooting
Errors with configuration
If you are getting a NullPointerException
(Java), or a KeyError
(Python), or similar errors when interacting with the TOML files (config and state), try running the state generation step again to make sure the file is generated and well formed.
1 2 3 4 5 6 |
|
Now try your work again.
Automated code checks
These commands will check your code for missing imports, syntax issues, and other minor issues that might trip you up.
1 |
|
1 |
|
1 |
|
1 |
|
Missing CloudFormation resources
Make sure you take the defaults for which region to launch in (us-east-2). If you've changed the region for any part of the workshop, tear your stack down and start fresh.
More disk space on Cloud9
Working through the workshop, you might find that you are out of disk. If this happens, use the following script to expand your EBS volume. (Script source)
Note that this is adapted from the script source because the Busy Engineer's Cloud9 instances run on EC2 Nitro, which has different block device identifiers.
Step by step:
- Save the script below to
resize.sh
chmod +x resize.sh
./resize.sh
- By default, this will increase your volume to 20GB, but you may supply a different number if you prefer.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
Tips
API Documentation
Python and Java have API documentation available for each exercise. You can view the documentation as you work in Cloud9.
1 |
|
1 |
|
Now select "Preview -> Preview Running Application" from the Cloud9 menu bar.
Cloud9 will open a new pane in your IDE with a web browser rendering your API documentation.
Cloud9
Cloud9 has lots of IDE features for you to leverage. Here's some links to help you make the most of your Cloud9 experience. (Links all open in a new window.)
Cryptographic Details
The Busy Engineer's Document Bucket only scratches the surface of the features offered by AWS KMS. To dive deep on how KMS can be useful to your application, check out the AWS Key Management Service Cryptographic Details Docs, for more information on the details of encryption, decryption, random number generation procedures, and more within KMS.