-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support no read-replication for Memorystore [DEVOP-4801] #18
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: "Checkov GitHub Action" | ||
permissions: read-all | ||
on: | ||
pull_request: | ||
branches: [test, dev, qa, prod, main] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
name: "Semantic Pull Request" | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
on: | ||
pull_request: | ||
types: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: "terraform" | ||
permissions: read-all | ||
on: | ||
pull_request: | ||
branches: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
name: terratest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
on: | ||
pull_request: | ||
branches: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ variable "reserved_ip_range" { | |
description = "The reserved IP range to use for the instance" | ||
} | ||
|
||
|
||
variable "memory_size" { | ||
type = string | ||
default = "2" | ||
|
@@ -49,11 +48,11 @@ variable "memory_size" { | |
|
||
variable "replicas" { | ||
type = number | ||
default = 1 | ||
description = "The number of instances to create" | ||
default = 0 | ||
description = "The number of read replicas to create" | ||
validation { | ||
condition = var.replicas >= 1 && var.replicas <= 5 | ||
error_message = "The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 1." | ||
condition = var.replicas <= 5 | ||
error_message = "The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 0 as the default is zero read-replicas." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since 1.9 you can do cross input variable references in input validations. So can make conditional based on the tier here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh nice, that's nice to know. I rewrote the validations as preconditions on the resource. |
||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we skip examples for checkov?