PARALLAX

lightsail

Manage instances in AWS Lightsail

Collection: community.aws

Full Name: community.aws.lightsail

Synopsis

Manage instances in AWS Lightsail

Parameters

NameTypeRequiredDefaultDescription
access_keystr
aws_ca_bundlepath
aws_configdict
blueprint_idstr
bundle_idstr
debug_botocore_endpoint_logsboolfalse
endpoint_urlstr
key_pair_namestr
namestryes
profilestr
public_portslist
regionstr
secret_keystr
session_tokenstr
statestrpresent
user_datastr
validate_certsbooltrue
waitbooltrue
wait_timeoutint300
zonestr

Example

yaml
- name: Create a new Lightsail instance
  community.aws.lightsail:
    state: present
    name: my_instance
    region: us-east-1
    zone: us-east-1a
    blueprint_id: ubuntu_16_04
    bundle_id: nano_1_0
    key_pair_name: id_rsa
    user_data: " echo 'hello world' > /home/ubuntu/test.txt"
    public_ports:
        - from_port: 22
          to_port: 22
          protocol: "tcp"
          cidrs: ["0.0.0.0/0"]
          ipv6_cidrs: ["::/0"]
  register: my_instance

- name: Delete an instance
  community.aws.lightsail:
    state: absent
    region: us-east-1
    name: my_instance
Search
    ↑ ↓ move↵ openesc close