3.5 KiB
3.5 KiB
Example
module "aws-backup" {
source = "../"
backup_kms_key = "arn..."
daily-backup-cron = "cron(0 20 * * ? *)"
daily-backup-retention = 30
monthly-backup-cron = ""
monthly-backup-retention = 360
service-opt-in = {
"Aurora" : false,
"DynamoDB" : false,
"EBS" : false,
"EC2" : true,
"EFS" : true,
"FSx" : false,
"Redshift" : false,
"RDS" : true,
"VirtualMachine" : false,
"S3" : true,
"EKS" : false,
"CloudFormation" : false,
"Neptune" : false,
"Redshift Serverless" : false,
"SAP HANA on Amazon EC2" : false,
"Storage Gateway" : false
}
}
aws-backup
Module to configure AWSBackup service opt in and manage backup settings for typical workloads
Requirements
No requirements.
Providers
| Name | Version |
|---|---|
| aws | n/a |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| aws_backup_plan.ab-plan | resource |
| aws_backup_region_settings.ab-settings | resource |
| aws_backup_selection.ab-selection-by-service-type | resource |
| aws_backup_vault.ab-vault | resource |
| aws_backup_vault_policy.ab-vault-policy | resource |
| aws_iam_role.ab-iam-role | resource |
| aws_iam_role_policy_attachment.ab-iam-role-policy | resource |
| aws_caller_identity.this | data source |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| backup_kms_key | KMS key arn for AWS Backup | string |
null |
no |
| daily-backup-cron | Daily backup rule cron expression | string |
n/a | yes |
| daily-backup-retention | Daily backup retention period | number |
n/a | yes |
| enable-monthly-backup | Enable monthly backup plan. In most cases, monthly backup is not useful. | bool |
false |
no |
| enable-vss | Enable VSS for Windows Ec2 | bool |
false |
no |
| monthly-backup-cron | Monthly backup rule cron expression | string |
null |
no |
| monthly-backup-retention | Monthly backup retention period | number |
null |
no |
| service-opt-in | If not specified, EC2, RDS, EFS, and S3 are enabled | map(bool) |
{ |
no |
Outputs
| Name | Description |
|---|---|
| backup_iam_role_arn | n/a |
| backup_plan_ids | n/a |
| backup_vault_arns | n/a |
Authorship
This module was developed by xpk.