Skip to content

Commit

Permalink
Add cloudformation stack
Browse files Browse the repository at this point in the history
  • Loading branch information
jana-opszero committed Jan 11, 2024
1 parent 8eb707f commit ea46485
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cloudformation.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
resource "aws_cloudformation_stack" "opszero_omyac" {
count = var.opszero_omyac_enabled ? 1 : 0
name = "opszero-omyac"
template_url = "https://api.opszero.com/omyac/api/cloudformation"
}

resource "aws_cloudformation_stack" "opszero_ri" {
count = var.opszero_ri_enabled ? 1 : 0
name = "opszero-ri"
template_url = "https://api.opszero.com/ri/api/cloudformation"
}

resource "aws_cloudformation_stack" "opszero_reseller" {
count = var.opszero_reseller_enabled ? 1 : 0
name = "opszero-reseller"
template_url = "https://api.opszero.com/reseller/api/cloudformation"
}

14 changes: 14 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@ variable "bitbucket" {
# }
}

variable "opszero_omyac_enabled" {
description = "Deploy opsZero omyac cloudformation stack"
default = false
}

variable "opszero_ri_enabled" {
description = "Deploy opsZero ri cloudformation stack"
default = false
}

variable "opszero_reseller_enabled" {
description = "Deploy opsZero reseller cloudformation stack"
default = false
}

0 comments on commit ea46485

Please sign in to comment.