0Pricing
Ansible Academy · Lesson

Launch EC2 Instances Declaratively

Provision compute with amazon.aws.

From Clicking to Declaring

Instead of clicking through the AWS console, you describe the instance you want and let Ansible make reality match it.

The ec2_instance Module

The amazon.aws.ec2_instance module creates and manages EC2 virtual machines straight from a playbook task.

- name: Launch a server
  amazon.aws.ec2_instance:
    name: web-01
    state: present

All lessons in this course

  1. Cloud Collections & Authentication
  2. Launch EC2 Instances Declaratively
  3. Networking: VPCs, Subnets & Security Groups
  4. Provision Then Configure in One Flow
← Back to Ansible Academy