Skip to content

provisioning_cloud_provider_ec2

This cake function executes the initial configuration on Amazon AWS instances. It has to be run directly after initial createn of a new instance.

The cake function provisioning_cloud_provider_ec2:

  • enables SSH root@ login
  • disables ec2 management of /etc/hostname, /etc/hosts and /etc/resolv.conf
  • removes the admin user created during creation of the instance by ec2

Information

Key Value
Playbook path plays/provisioning/cloud-provider/ec2.yml
Role None
Tags None
Defaults None
Config files Description
/etc/cloud/cloud.cfg.d/01_debian_cloud.cfg Defines what things on the server are managed / modified during runtime by ec2

Example

The play targets the ec2 group, which has to be created in inventory/hosts to then include other groups or hosts:

[ec2:children]
util
cus_tool_prod
[...]

Run with cake:

cake -f provisioning_cloud_provider_ec2 -i pub