Skip to content

Commit

Permalink
fixing example file
Browse files Browse the repository at this point in the history
  • Loading branch information
OrNovo committed Jul 27, 2023
1 parent 78354e2 commit ff6189b
Showing 1 changed file with 1 addition and 76 deletions.
77 changes: 1 addition & 76 deletions examples/tco_policy/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
coralogix = {
version = "~> 1.5"
version = "~> 1.7"
source = "coralogix/coralogix"
}
}
Expand All @@ -12,77 +12,6 @@ provider "coralogix" {
#env = "<add the environment you want to work at or add env variable CORALOGIX_ENV>"
}

#resource "coralogix_tco_policy" "tco_policy_1" {
# name = "Example tco_policy from terraform 1"
# priority = "low"
# order = 1
# severities = ["debug", "verbose", "info"]
# application_name {
# starts_with = true
# rule = "prod"
# }
# subsystem_name {
# is = true
# rules = ["mobile", "web"]
# }
# archive_retention_id = "e1c980d0-c910-4c54-8326-67f3cf95645a"
#}
#
#resource "coralogix_tco_policy" "tco_policy_2" {
# name = "Example tco_policy from terraform 2"
# priority = "medium"
#
# order = 2
#
# severities = ["error", "warning", "critical"]
# application_name {
# starts_with = true
# rule = "prod"
# }
# subsystem_name {
# is = true
# rules = ["mobile", "web"]
# }
#}
#
#resource "coralogix_tco_policy" "tco_policy_3" {
# name = "Example tco_policy from terraform 3"
# priority = "high"
#
# order = 3
# # currently, for controlling the policies order they have to be created by the order you want them to be.
# # for this purpose, defining dependency via the 'order' field can control their creation order.
#
# severities = ["error", "warning", "critical"]
# application_name {
# starts_with = true
# rule = "prod"
# }
# subsystem_name {
# is = true
# rules = ["mobile", "web"]
# }
#}
#
#resource "coralogix_tco_policy" "tco_policy_4" {
# name = "Example tco_policy from terraform 4"
# priority = "high"
#
# order = 4
# # currently, for controlling the policies order they have to be created by the order you want them to be.
# # for this purpose, defining dependency via the 'order' field can control their creation order.
#
# severities = ["error", "warning", "critical"]
# application_name {
# starts_with = true
# rule = "prod"
# }
# subsystem_name {
# is = true
# rules = ["mobile", "web"]
# }
#}

resource "coralogix_tco_policy" "tco_policy_1" {
name = "Example tco_policy from terraform 1"
priority = "low"
Expand Down Expand Up @@ -119,8 +48,6 @@ resource "coralogix_tco_policy" "tco_policy_3" {
name = "Example tco_policy from terraform 3"
priority = "high"
order = 3
# currently, for controlling the policies order they have to be created by the order you want them to be.
# for this purpose, defining dependency via the 'order' field can control their creation order.

severities = ["error", "warning", "critical"]
applications = {
Expand All @@ -137,8 +64,6 @@ resource "coralogix_tco_policy" "tco_policy_4" {
name = "Example tco_policy from terraform 4"
priority = "high"
order = 4
# currently, for controlling the policies order they have to be created by the order you want them to be.
# for this purpose, defining dependency via the 'order' field can control their creation order.

severities = ["error", "warning", "critical"]
applications = {
Expand Down

0 comments on commit ff6189b

Please sign in to comment.