diff --git a/CHANGELOG.md b/CHANGELOG.md index c3a73ca..09aa322 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.13.1 (Jan 26, 2022) + +ENHANCEMENTS: + +* Update examples and READMEs + ## 0.13.0 (Jan 26, 2022) ENHANCEMENTS: diff --git a/README.md b/README.md index 4c87dad..bcf35dc 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ module "aws_backup_example" { }, { name = "rule-2" + schedule = "cron(0 7 * * ? *)" target_vault_name = "Default" schedule = null start_window = 120 @@ -76,7 +77,39 @@ module "aws_backup_example" { selections = [ { name = "selection-1" - resources = ["arn:aws:dynamodb:us-east-1:123456789101:table/mydynamodb-table1"] + resources = ["arn:aws:dynamodb:us-east-1:123456789101:table/mydynamodb-table1"] + not_resources = [] + conditions = { + string_equals = [ + { + key = "aws:ResourceTag/Component" + value = "rds" + } + , + { + key = "aws:ResourceTag/Project" + value = "Project1" + } + ] + string_like = [ + { + key = "aws:ResourceTag/Application" + value = "app*" + } + ] + string_not_equals = [ + { + key = "aws:ResourceTag/Backup" + value = "false" + } + ] + string_not_like = [ + { + key = "aws:ResourceTag/Environment" + value = "test*" + } + ] + } selection_tags = [ { type = "STRINGEQUALS" diff --git a/examples/selection_by_tags/README.md b/examples/selection_by_tags/README.md index 27866b6..b6b63dd 100644 --- a/examples/selection_by_tags/README.md +++ b/examples/selection_by_tags/README.md @@ -31,6 +31,7 @@ module "aws_backup_example" { }, { name = "rule-2" + schedule = "cron(0 7 * * ? *)" target_vault_name = "Default" schedule = null start_window = 120 @@ -46,6 +47,37 @@ module "aws_backup_example" { selections = [ { name = "selection-1" + conditions = { + string_equals = [ + { + key = "aws:ResourceTag/Component" + value = "rds" + } + , + { + key = "aws:ResourceTag/Project" + value = "Project1" + } + ] + string_like = [ + { + key = "aws:ResourceTag/Application" + value = "app*" + } + ] + string_not_equals = [ + { + key = "aws:ResourceTag/Backup" + value = "false" + } + ] + string_not_like = [ + { + key = "aws:ResourceTag/Environment" + value = "test*" + } + ] + } selection_tags = [ { type = "STRINGEQUALS" diff --git a/examples/selection_by_tags/main.tf b/examples/selection_by_tags/main.tf index 26add3d..bef64c7 100644 --- a/examples/selection_by_tags/main.tf +++ b/examples/selection_by_tags/main.tf @@ -26,6 +26,7 @@ module "aws_backup_example" { }, { name = "rule-2" + schedule = "cron(0 7 * * ? *)" target_vault_name = "Default" schedule = null start_window = 120 @@ -41,6 +42,37 @@ module "aws_backup_example" { selections = [ { name = "selection-1" + conditions = { + string_equals = [ + { + key = "aws:ResourceTag/Component" + value = "rds" + } + , + { + key = "aws:ResourceTag/Project" + value = "Project1" + } + ] + string_like = [ + { + key = "aws:ResourceTag/Application" + value = "app*" + } + ] + string_not_equals = [ + { + key = "aws:ResourceTag/Backup" + value = "false" + } + ] + string_not_like = [ + { + key = "aws:ResourceTag/Environment" + value = "test*" + } + ] + } selection_tags = [ { type = "STRINGEQUALS"