Leverage AWS Data Lifecycle Manager to take EC2 snapshots. This code will look for a target_tag
value on your EC2 instances to identify those
in need of snapshotting. By default this will be the key Snapshot
with a string value of true
.
Name | Version |
---|---|
terraform | >= 1.0.1 |
aws | ~> 4.0 |
Name | Version |
---|---|
aws | ~> 4.0 |
No modules.
Name | Type |
---|---|
aws_dlm_lifecycle_policy.dlm_daily_snapshots | resource |
aws_iam_role.dlm_lifecycle_role | resource |
aws_iam_role_policy_attachment.dlm_lifecycle_policy_attachment | resource |
aws_caller_identity.current | data source |
aws_iam_policy_document.dlm_lifecycle_role | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
environment | Environment name, EG. Development | any |
n/a | yes |
service | Name of service to use this module. EG. SuperCaliFragiListic | any |
n/a | yes |
state | State for the DLM policy. Valid values are ENABLED and DISABLED |
string |
"ENABLED" |
no |
tags | Map of tags to apply | map(any) |
n/a | yes |
target_tags | Map of tags to look for in order to create a snapshot | map |
{ |
no |
No outputs.