Skip to content

Commit

Permalink
Merge pull request #53 from lgallard/release/0.13.1
Browse files Browse the repository at this point in the history
Update examples and READMEs
  • Loading branch information
lgallard authored Jan 26, 2022
2 parents 1af162c + 7c54d2a commit a9f75d1
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.13.1 (Jan 26, 2022)

ENHANCEMENTS:

* Update examples and READMEs

## 0.13.0 (Jan 26, 2022)

ENHANCEMENTS:
Expand Down
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module "aws_backup_example" {
},
{
name = "rule-2"
schedule = "cron(0 7 * * ? *)"
target_vault_name = "Default"
schedule = null
start_window = 120
Expand All @@ -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"
Expand Down
32 changes: 32 additions & 0 deletions examples/selection_by_tags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module "aws_backup_example" {
},
{
name = "rule-2"
schedule = "cron(0 7 * * ? *)"
target_vault_name = "Default"
schedule = null
start_window = 120
Expand All @@ -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"
Expand Down
32 changes: 32 additions & 0 deletions examples/selection_by_tags/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module "aws_backup_example" {
},
{
name = "rule-2"
schedule = "cron(0 7 * * ? *)"
target_vault_name = "Default"
schedule = null
start_window = 120
Expand All @@ -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"
Expand Down

0 comments on commit a9f75d1

Please sign in to comment.