Reputation: 45
I am trying to bootstrap an instance of CentOS with cloudify on AWS EC2, but i can't get that happen because i am always interrupted by a fabric error that says: fabric_plugin.tasks.run_module_task' -> Needed to prompt for a connection or sudo password (host: X.X.X.X), but abort-on-prompts was set to True
.
I made a simple YAML file to configure the AWS bootstrap, and the .pem public key created after I run the bootstrap command, so basically the fabric should use it with the CentOS EC2 username without prompting for password.
my input.YAML file:
aws_access_key_id: 'XX'
aws_secret_access_key: 'XXXX'
image_id: 'ami-6e37a25e' #ami-e48d6ad7' #ami-45f7ed24'
instance_type: 't2.micro'
ssh_key_filename: '~/.ssh/manager-cle.pem'
agent_private_key_path: ''~/.ssh/client-cle.pem'
manager_security_group_name: 'cloudify-manager-security-group'
agent_security_group_name: 'cloudify-agent-security-group'
manager_server_name: 'cloudify-manager-server'
manager_keypair_name: 'manager-key'
agent_keypair_name: 'agent-key'
Upvotes: 1
Views: 151
Reputation: 259
Usually you are prompted for sudo because one of the following is not valid:
Upvotes: 3