-
Notifications
You must be signed in to change notification settings - Fork 67
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
[Feature] Added automated provisioning of CosmosDB and App Insights for OPEA applications - Infosys #657
[Feature] Added automated provisioning of CosmosDB and App Insights for OPEA applications - Infosys #657
Changes from all commits
1eb1b98
e685354
a36d3bb
2ae6510
01c92c1
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 |
---|---|---|
|
@@ -4,6 +4,12 @@ variable "location" { | |
default = "eastus" | ||
} | ||
|
||
variable "cosmosdb_account_location" { | ||
description = "Cosmos DB account Location" | ||
type = string | ||
default = "westus" | ||
} | ||
|
||
variable "cluster_name" { | ||
description = "AKS cluster name" | ||
type = string | ||
|
@@ -81,3 +87,23 @@ variable "instance_types" { | |
type = list(string) | ||
default = ["Standard_D32d_v5"] | ||
} | ||
|
||
variable "throughput" { | ||
type = number | ||
default = 400 | ||
description = "Cosmos db database throughput" | ||
validation { | ||
condition = var.throughput >= 400 && var.throughput <= 1000000 | ||
error_message = "Cosmos db manual throughput should be equal to or greater than 400 and less than or equal to 1000000." | ||
} | ||
validation { | ||
condition = var.throughput % 100 == 0 | ||
error_message = "Cosmos db throughput should be in increments of 100." | ||
} | ||
} | ||
|
||
variable "is_cosmosdb_required" { | ||
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. Can you add default (false) so use is not asked every time? 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. Added and added one more parameter in tfvars also defaulted to false. Mentioned in README that users can update this if they want Cosmos DB as part of their provisioning. |
||
type = bool | ||
description = "Is Cosmos DB required for your deployment? [true/false]" | ||
default = false | ||
} |
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.
Does not /* cover everything? Is there some ordering effect here .. from most general to specific?