Gazebo | Ignition | Community
Ask Your Question

cloudsim doesn't accept .pem file arguments

asked 2012-12-10 16:27:43 -0500

cga gravatar image

Either there is a cloudsim-1.0.0 bug, or a problem with .pem files

./ pk-XYZ.pem sa-XYZ.pem
results in the error message:
Traceback (most recent call last):
  File "./", line 40, in <module>
    import common
ImportError: No module named commoncode 
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-12-11 09:21:10 -0500

cga gravatar image

When you make an AWS key pair and save it on your machine, it is saved as a .pem file pair. It would be convenient to be able to just use these files.

edit flag offensive delete link more



CloudSim uses Access Keys (not key pairs, sorry) to connect to AWS. AWS provides them on the Access Keys tab on the AWS Security Credentials page.

hugomatic gravatar imagehugomatic ( 2012-12-11 13:42:43 -0500 )edit

answered 2012-12-10 21:02:36 -0500

hugomatic gravatar image

updated 2012-12-11 13:47:42 -0500


You must use AWS Access Keys because CloudSim interacts with Amazon Web Services over the REST api. Pem files are used to login to machines instances via SSH.

Also: please use the latest version of CloudSim (1.0.1 or later), it fixes important security issues.

edit flag offensive delete link more

Question Tools


Asked: 2012-12-10 16:27:43 -0500

Seen: 239 times

Last updated: Dec 11 '12