lightsail_snapshot
Creates snapshots of AWS Lightsail instances
Collection: community.aws
Full Name: community.aws.lightsail_snapshot
Synopsis
Creates snapshots of AWS Lightsail instances
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| debug_botocore_endpoint_logs | bool | false | ||
| endpoint_url | str | |||
| instance_name | str | |||
| profile | str | |||
| region | str | |||
| secret_key | str | |||
| session_token | str | |||
| snapshot_name | str | yes | ||
| state | str | present | ||
| validate_certs | bool | true | ||
| wait | bool | true | ||
| wait_timeout | int | 300 |
Example
yaml
- name: Create AWS Lightsail snapshot
community.aws.lightsail_snapshot:
region: us-east-1
snapshot_name: "my_instance_snapshot"
instance_name: "my_instance"
- name: Delete AWS Lightsail snapshot
community.aws.lightsail_snapshot:
region: us-east-1
snapshot_name: "my_instance_snapshot"
state: absent