ec2-ami-backup

cloudposse/ec2-ami-backup/aws

Terraform Module HCL AWS

Terraform module for automatic & scheduled AMI creation

Install
module "ec2-ami-backup" {
source = "cloudposse/ec2-ami-backup/aws"
version = "0.4.1"
}
plain text: /constructs/tfmod-cloudposse-ec2-ami-backup-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

[![README Header][readme_header_img]][readme_header_link] [![Cloud Posse][logo]](https://cpco.io/homepage) terraform-aws-ec2-ami-backup ![Build Status](https://travis-ci.org/cloudposse/terraform-aws-ec2-ami-backup) ![Latest Release](https://travis-ci.org/cloudposse/terraform-aws-ec2-ami-backup/releases) ![Slack Community](https://slack.cloudposse.com) This repo contains a terraform module that creates two lambda functions that will create AMI automatically at regular intervals. It is based on the code at and . --- This project is part of our comprehensive "SweetOps" approach towards DevOps. [ ][share_email] [ ][share_googleplus] [ ][share_facebook] [ ][share_reddit] [ ][share_linkedin] [ ][share_twitter] ![Terraform Open Source Modules][terraform_modules] It's 100% Open Source and licensed

Inputs (11)
NameTypeDescriptionDefault
instance_idstringAWS Instance ID which is used for creating the AMI image (e.g. `id-123456789012` required
ami_ownerstringAWS Account ID which is used as a filter for AMI list (e.g. `123456789012`)""
block_device_mappingslistList of block device mappings to be included/excluded from created AMIs. With de[]
rebootstringReboot the machine as part of the snapshot process"false"
backup_schedulestringThe scheduling expression. (e.g. cron(0 20 * * ? *) or rate(5 minutes)"cron(00 19 * * ? *)"
cleanup_schedulestringThe scheduling expression. (e.g. cron(0 20 * * ? *) or rate(5 minutes)"cron(05 19 * * ? *)"
namestringName (e.g. `bastion` or `db`)""
namespacestringNamespace (e.g. `cp` or `cloudposse`)""
stagestringStage (e.g. `prod`, `dev`, `staging`)""
regionstringAWS Region where module should operate (e.g. `us-east-1`)""
retention_daysstringIs the number of days you want to keep the backups for (e.g. `14`)"14"
Resources (7)
aws_cloudwatch_event_ruleaws_cloudwatch_event_targetaws_iam_roleaws_iam_role_policyaws_lambda_functionaws_lambda_permissionnull_resource
Details
FrameworkTerraform Module
LanguageHCL
Version0.4.1
Cloud AWS
★ Stars24
Forks29
Total downloads10.4k
Inputs11
Resources7
LicenseNOASSERTION
Namespacecloudposse
Updated