Skip to content

dms1981/terraform-dlm-snapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-dlm-snapshot

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.

Requirements

Name Version
terraform >= 1.0.1
aws ~> 4.0

Providers

Name Version
aws ~> 4.0

Modules

No modules.

Resources

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

Inputs

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
{
"Snapshot": "true"
}
no

Outputs

No outputs.

About

Leverage AWS Data Lifecycle Manager to take EC2 snapshots

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages