diff --git a/ci/module-test/main.tf b/ci/module-test/main.tf index 1adcd9f..e4feb22 100644 --- a/ci/module-test/main.tf +++ b/ci/module-test/main.tf @@ -11,13 +11,13 @@ resource "solacebroker_msg_vpn_queue" "myqueue" { } module "testrdp" { - source = "../.." - - msg_vpn_name = "default" - queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name - url = "http://example.com/$${msgId()}" + source = "../.." + + msg_vpn_name = "default" + queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name + url = "http://example.com/$${msgId()}" rest_delivery_point_name = "my_rdp" - enabled = false + enabled = false request_headers = [ { header_name = "header1" @@ -41,19 +41,19 @@ module "testrdp" { oauth_jwt_claims = [ { oauth_jwt_claim_name = "scope" - oauth_jwt_claim_value = "\"https://www.googleapis.com/auth/pubsub\"" + oauth_jwt_claim_value = "\"https://www.googleapis.com/auth/pubsub\"" }, { oauth_jwt_claim_name = "aud" - oauth_jwt_claim_value = "\"https://www.googleapis.com/oauth2/v4/token\"" + oauth_jwt_claim_value = "\"https://www.googleapis.com/oauth2/v4/token\"" }, { oauth_jwt_claim_name = "iss" - oauth_jwt_claim_value = "\"111400995554822290197\"" + oauth_jwt_claim_value = "\"111400995554822290197\"" }, { oauth_jwt_claim_name = "sub" - oauth_jwt_claim_value = "\"111400995554822290197\"" + oauth_jwt_claim_value = "\"111400995554822290197\"" } ] } @@ -63,7 +63,7 @@ output "rdp" { } output "consumer" { - value = module.testrdp.rest_consumer + value = module.testrdp.rest_consumer sensitive = true } @@ -76,7 +76,7 @@ output "request_headers" { } output "protected_request_headers" { - value = module.testrdp.protected_request_headers + value = module.testrdp.protected_request_headers sensitive = true } @@ -85,12 +85,12 @@ output "oauth_jwt_claims" { } module "testrdp2" { - source = "../../internal/gen-template" - - msg_vpn_name = "default" - queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name - url = "http://example.com/$${msgId()}" - rest_delivery_point_name = "my_rdp2" - request_headers = module.testrdp.request_headers + source = "../../internal/gen-template" + + msg_vpn_name = "default" + queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name + url = "http://example.com/$${msgId()}" + rest_delivery_point_name = "my_rdp2" + request_headers = module.testrdp.request_headers protected_request_headers = module.testrdp.protected_request_headers } \ No newline at end of file diff --git a/ci/template-test/main.tf b/ci/template-test/main.tf index 8321e32..f63e97b 100644 --- a/ci/template-test/main.tf +++ b/ci/template-test/main.tf @@ -11,13 +11,13 @@ resource "solacebroker_msg_vpn_queue" "myqueue" { } module "testrdp" { - source = "../../internal/gen-template" - - msg_vpn_name = "default" - queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name - url = "http://example.com/$${msgId()}" + source = "../../internal/gen-template" + + msg_vpn_name = "default" + queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name + url = "http://example.com/$${msgId()}" rest_delivery_point_name = "my_rdp" - enabled = false + enabled = false request_headers = [ { header_name = "header1" @@ -41,19 +41,19 @@ module "testrdp" { oauth_jwt_claims = [ { oauth_jwt_claim_name = "scope" - oauth_jwt_claim_value = "\"https://www.googleapis.com/auth/pubsub\"" + oauth_jwt_claim_value = "\"https://www.googleapis.com/auth/pubsub\"" }, { oauth_jwt_claim_name = "aud" - oauth_jwt_claim_value = "\"https://www.googleapis.com/oauth2/v4/token\"" + oauth_jwt_claim_value = "\"https://www.googleapis.com/oauth2/v4/token\"" }, { oauth_jwt_claim_name = "iss" - oauth_jwt_claim_value = "\"111400995554822290197\"" + oauth_jwt_claim_value = "\"111400995554822290197\"" }, { oauth_jwt_claim_name = "sub" - oauth_jwt_claim_value = "\"111400995554822290197\"" + oauth_jwt_claim_value = "\"111400995554822290197\"" } ] } @@ -63,7 +63,7 @@ output "rdp" { } output "consumer" { - value = module.testrdp.rest_consumer + value = module.testrdp.rest_consumer sensitive = true } @@ -76,7 +76,7 @@ output "request_headers" { } output "protected_request_headers" { - value = module.testrdp.protected_request_headers + value = module.testrdp.protected_request_headers sensitive = true } @@ -85,12 +85,12 @@ output "oauth_jwt_claims" { } module "testrdp2" { - source = "../../internal/gen-template" - - msg_vpn_name = "default" - queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name - url = "http://example.com/$${msgId()}" - rest_delivery_point_name = "my_rdp2" - request_headers = module.testrdp.request_headers + source = "../../internal/gen-template" + + msg_vpn_name = "default" + queue_name = solacebroker_msg_vpn_queue.myqueue.queue_name + url = "http://example.com/$${msgId()}" + rest_delivery_point_name = "my_rdp2" + request_headers = module.testrdp.request_headers protected_request_headers = module.testrdp.protected_request_headers } \ No newline at end of file diff --git a/examples/adding-headers/main.tf b/examples/adding-headers/main.tf index bf812f8..62b60a3 100644 --- a/examples/adding-headers/main.tf +++ b/examples/adding-headers/main.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + provider "solacebroker" { username = "admin" password = "admin" @@ -23,21 +37,21 @@ provider "solacebroker" { # # The queue must also be enabled for ingress and egress, which is the default for the rdp_queue module # } resource "solacebroker_msg_vpn_queue" "rdp_queue" { - msg_vpn_name = "default" - queue_name = "rdp_queue" - permission = "consume" + msg_vpn_name = "default" + queue_name = "rdp_queue" + permission = "consume" ingress_enabled = true - egress_enabled = true + egress_enabled = true } module "testrdp" { - source = "../.." - - msg_vpn_name = "default" + source = "../.." + + msg_vpn_name = "default" rest_delivery_point_name = "basic_rdp" - url = "https://example.com/test" + url = "https://example.com/test" # queue_name = module.rdp_queue.queue.queue_name - queue_name = solacebroker_msg_vpn_queue.rdp_queue.queue_name + queue_name = solacebroker_msg_vpn_queue.rdp_queue.queue_name request_headers = [ { header_name = "header1" @@ -56,7 +70,7 @@ output "rdp" { } output "consumer" { - value = module.testrdp.rest_consumer + value = module.testrdp.rest_consumer sensitive = true } diff --git a/examples/adding-headers/providers.tf b/examples/adding-headers/providers.tf index d1de478..6dd1008 100644 --- a/examples/adding-headers/providers.tf +++ b/examples/adding-headers/providers.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Terraform configuration terraform { diff --git a/examples/adding-headers/secret.tfvars b/examples/adding-headers/secret.tfvars index 93b40fa..574792e 100644 --- a/examples/adding-headers/secret.tfvars +++ b/examples/adding-headers/secret.tfvars @@ -1,10 +1,10 @@ - protected_request_headers = [ - { - header_name = "protected_header1" - header_value = "protected_value1" - }, - { - header_name = "protected_header2" - header_value = "protected_value2" - } - ] \ No newline at end of file +protected_request_headers = [ + { + header_name = "protected_header1" + header_value = "protected_value1" + }, + { + header_name = "protected_header2" + header_value = "protected_value2" + } +] \ No newline at end of file diff --git a/examples/adding-headers/variables.tf b/examples/adding-headers/variables.tf index a4cc79d..a563601 100644 --- a/examples/adding-headers/variables.tf +++ b/examples/adding-headers/variables.tf @@ -1,7 +1,21 @@ - variable "protected_request_headers" { - type = list(object({ - header_name = string - header_value = string - })) - default = [] - } +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +variable "protected_request_headers" { + type = list(object({ + header_name = string + header_value = string + })) + default = [] +} diff --git a/examples/basic/main.tf b/examples/basic/main.tf index ccc03f2..4c2edc2 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + provider "solacebroker" { username = "admin" password = "admin" @@ -23,21 +37,21 @@ provider "solacebroker" { # # The queue must also be enabled for ingress and egress, which is the default for the rdp_queue module # } resource "solacebroker_msg_vpn_queue" "rdp_queue" { - msg_vpn_name = "default" - queue_name = "rdp_queue" - permission = "consume" + msg_vpn_name = "default" + queue_name = "rdp_queue" + permission = "consume" ingress_enabled = true - egress_enabled = true + egress_enabled = true } module "testrdp" { - source = "../.." - - msg_vpn_name = "default" + source = "../.." + + msg_vpn_name = "default" rest_delivery_point_name = "basic_rdp" - url = "https://example.com/test" + url = "https://example.com/test" # queue_name = module.rdp_queue.queue.queue_name - queue_name = solacebroker_msg_vpn_queue.rdp_queue.queue_name + queue_name = solacebroker_msg_vpn_queue.rdp_queue.queue_name } output "rdp" { @@ -45,7 +59,7 @@ output "rdp" { } output "consumer" { - value = module.testrdp.rest_consumer + value = module.testrdp.rest_consumer sensitive = true } diff --git a/examples/basic/providers.tf b/examples/basic/providers.tf index d1de478..6dd1008 100644 --- a/examples/basic/providers.tf +++ b/examples/basic/providers.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Terraform configuration terraform { diff --git a/examples/using-substitution-expressions/main.tf b/examples/using-substitution-expressions/main.tf index 8fadcf2..7aedec4 100644 --- a/examples/using-substitution-expressions/main.tf +++ b/examples/using-substitution-expressions/main.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + provider "solacebroker" { username = "admin" password = "admin" @@ -23,21 +37,21 @@ provider "solacebroker" { # # The queue must also be enabled for ingress and egress, which is the default for the rdp_queue module # } resource "solacebroker_msg_vpn_queue" "rdp_queue" { - msg_vpn_name = "default" - queue_name = "rdp_queue" - permission = "consume" + msg_vpn_name = "default" + queue_name = "rdp_queue" + permission = "consume" ingress_enabled = true - egress_enabled = true + egress_enabled = true } module "testrdp" { - source = "../.." - - msg_vpn_name = "default" + source = "../.." + + msg_vpn_name = "default" rest_delivery_point_name = "basic_rdp" - url = "http://example.com/$${msgId()}" + url = "http://example.com/$${msgId()}" # queue_name = module.rdp_queue.queue.queue_name - queue_name = solacebroker_msg_vpn_queue.rdp_queue.queue_name + queue_name = solacebroker_msg_vpn_queue.rdp_queue.queue_name request_headers = [ { header_name = "header1" @@ -51,7 +65,7 @@ output "rdp" { } output "consumer" { - value = module.testrdp.rest_consumer + value = module.testrdp.rest_consumer sensitive = true } diff --git a/examples/using-substitution-expressions/providers.tf b/examples/using-substitution-expressions/providers.tf index d1de478..6dd1008 100644 --- a/examples/using-substitution-expressions/providers.tf +++ b/examples/using-substitution-expressions/providers.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Terraform configuration terraform { diff --git a/internal/gen-template/main.tf b/internal/gen-template/main.tf index e21092b..173afc9 100644 --- a/internal/gen-template/main.tf +++ b/internal/gen-template/main.tf @@ -1,11 +1,11 @@ locals { - tls = startswith(lower(var.url), "https:") - slashSplit = split("/", var.url) - hostPortSplit = split(":", local.slashSplit[2]) - host = local.hostPortSplit[0] - port = length(local.hostPortSplit) == 2 ? tonumber(local.hostPortSplit[1]) : (local.tls ? 443 : 80) - path = "/${join("/", slice(local.slashSplit, 3, length(local.slashSplit)))}" - headers_list = tolist(var.request_headers) + tls = startswith(lower(var.url), "https:") + slashSplit = split("/", var.url) + hostPortSplit = split(":", local.slashSplit[2]) + host = local.hostPortSplit[0] + port = length(local.hostPortSplit) == 2 ? tonumber(local.hostPortSplit[1]) : (local.tls ? 443 : 80) + path = "/${join("/", slice(local.slashSplit, 3, length(local.slashSplit)))}" + headers_list = tolist(var.request_headers) protected_headers_list = tolist(var.protected_request_headers) } @@ -18,22 +18,22 @@ resource "solacebroker_msg_vpn_rest_delivery_point" "main" { } resource "solacebroker_msg_vpn_rest_delivery_point_rest_consumer" "main" { - msg_vpn_name = solacebroker_msg_vpn_rest_delivery_point.main.msg_vpn_name - rest_delivery_point_name = solacebroker_msg_vpn_rest_delivery_point.main.rest_delivery_point_name - enabled = solacebroker_msg_vpn_rest_delivery_point.main.enabled - rest_consumer_name = var.rest_consumer_name != null ? var.rest_consumer_name : "consumer" - remote_host = local.host - remote_port = local.port - tls_enabled = local.tls + msg_vpn_name = solacebroker_msg_vpn_rest_delivery_point.main.msg_vpn_name + rest_delivery_point_name = solacebroker_msg_vpn_rest_delivery_point.main.rest_delivery_point_name + enabled = solacebroker_msg_vpn_rest_delivery_point.main.enabled + rest_consumer_name = var.rest_consumer_name != null ? var.rest_consumer_name : "consumer" + remote_host = local.host + remote_port = local.port + tls_enabled = local.tls #AutoAddAttributes #EnableCommonVariables } resource "solacebroker_msg_vpn_rest_delivery_point_queue_binding" "main" { - msg_vpn_name = solacebroker_msg_vpn_rest_delivery_point.main.msg_vpn_name - rest_delivery_point_name = solacebroker_msg_vpn_rest_delivery_point.main.rest_delivery_point_name - queue_binding_name = var.queue_name - post_request_target = local.path + msg_vpn_name = solacebroker_msg_vpn_rest_delivery_point.main.msg_vpn_name + rest_delivery_point_name = solacebroker_msg_vpn_rest_delivery_point.main.rest_delivery_point_name + queue_binding_name = var.queue_name + post_request_target = local.path #AutoAddAttributes #EnableCommonVariables } @@ -45,8 +45,8 @@ resource "solacebroker_msg_vpn_rest_delivery_point_queue_binding_request_header" rest_delivery_point_name = solacebroker_msg_vpn_rest_delivery_point.main.rest_delivery_point_name queue_binding_name = solacebroker_msg_vpn_rest_delivery_point_queue_binding.main.queue_binding_name - header_name = local.headers_list[count.index].header_name - header_value = local.headers_list[count.index].header_value + header_name = local.headers_list[count.index].header_name + header_value = local.headers_list[count.index].header_value } resource "solacebroker_msg_vpn_rest_delivery_point_queue_binding_protected_request_header" "main" { @@ -56,17 +56,17 @@ resource "solacebroker_msg_vpn_rest_delivery_point_queue_binding_protected_reque rest_delivery_point_name = solacebroker_msg_vpn_rest_delivery_point.main.rest_delivery_point_name queue_binding_name = solacebroker_msg_vpn_rest_delivery_point_queue_binding.main.queue_binding_name - header_name = local.protected_headers_list[count.index].header_name - header_value = local.protected_headers_list[count.index].header_value + header_name = local.protected_headers_list[count.index].header_name + header_value = local.protected_headers_list[count.index].header_value } resource "solacebroker_msg_vpn_rest_delivery_point_rest_consumer_oauth_jwt_claim" "main" { - for_each = {for v in var.oauth_jwt_claims : v.oauth_jwt_claim_name => v} + for_each = { for v in var.oauth_jwt_claims : v.oauth_jwt_claim_name => v } msg_vpn_name = solacebroker_msg_vpn_rest_delivery_point.main.msg_vpn_name rest_delivery_point_name = solacebroker_msg_vpn_rest_delivery_point.main.rest_delivery_point_name rest_consumer_name = solacebroker_msg_vpn_rest_delivery_point_rest_consumer.main.rest_consumer_name - oauth_jwt_claim_name = each.value.oauth_jwt_claim_name - oauth_jwt_claim_value = each.value.oauth_jwt_claim_value + oauth_jwt_claim_name = each.value.oauth_jwt_claim_name + oauth_jwt_claim_value = each.value.oauth_jwt_claim_value } diff --git a/internal/gen-template/outputs.tf b/internal/gen-template/outputs.tf index c5fbdd0..6983fd8 100644 --- a/internal/gen-template/outputs.tf +++ b/internal/gen-template/outputs.tf @@ -1,27 +1,27 @@ # Output variable definitions output "rest_delivery_point" { - value = try(solacebroker_msg_vpn_rest_delivery_point.main, null) + value = try(solacebroker_msg_vpn_rest_delivery_point.main, null) } output "rest_consumer" { - value = try(solacebroker_msg_vpn_rest_delivery_point_rest_consumer.main, null) + value = try(solacebroker_msg_vpn_rest_delivery_point_rest_consumer.main, null) sensitive = true } output "queue_binding" { - value = try(solacebroker_msg_vpn_rest_delivery_point_queue_binding.main, null) + value = try(solacebroker_msg_vpn_rest_delivery_point_queue_binding.main, null) } output "request_headers" { - value = try(solacebroker_msg_vpn_rest_delivery_point_queue_binding_request_header.main, null) + value = try(solacebroker_msg_vpn_rest_delivery_point_queue_binding_request_header.main, null) } output "protected_request_headers" { - value = try(solacebroker_msg_vpn_rest_delivery_point_queue_binding_protected_request_header.main, null) + value = try(solacebroker_msg_vpn_rest_delivery_point_queue_binding_protected_request_header.main, null) sensitive = true } output "oauth_jwt_claims" { - value = try(solacebroker_msg_vpn_rest_delivery_point_rest_consumer_oauth_jwt_claim.main, null) + value = try(solacebroker_msg_vpn_rest_delivery_point_rest_consumer_oauth_jwt_claim.main, null) } diff --git a/internal/gen-template/variables.tf b/internal/gen-template/variables.tf index 4de34be..3d280f0 100644 --- a/internal/gen-template/variables.tf +++ b/internal/gen-template/variables.tf @@ -40,28 +40,28 @@ variable "rest_consumer_name" { variable "request_headers" { description = "Request headers to be added to the HTTP request" - type = set(object({ - header_name = string - header_value = optional(string) - })) - default = [] + type = set(object({ + header_name = string + header_value = optional(string) + })) + default = [] } variable "protected_request_headers" { description = "Request headers to be added to the HTTP request" - type = set(object({ - header_name = string - header_value = optional(string) - })) - default = [] + type = set(object({ + header_name = string + header_value = optional(string) + })) + default = [] sensitive = true } variable "oauth_jwt_claims" { description = "Additional claims to be added to the JWT sent to the OAuth token request endpoint" - type = set(object({ - oauth_jwt_claim_name = string - oauth_jwt_claim_value = string - })) - default = [] + type = set(object({ + oauth_jwt_claim_name = string + oauth_jwt_claim_value = string + })) + default = [] } diff --git a/main.tf b/main.tf index 2b83fc6..10b39ff 100644 --- a/main.tf +++ b/main.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + locals { tls = startswith(lower(var.url), "https:") slashSplit = split("/", var.url) diff --git a/outputs.tf b/outputs.tf index d559e4a..d6eb967 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Output variable definitions output "rest_delivery_point" { diff --git a/provider.tf b/provider.tf index 92095b9..d0e66b6 100644 --- a/provider.tf +++ b/provider.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Terraform configuration terraform { diff --git a/variables.tf b/variables.tf index 5cb1857..3d7cfe8 100644 --- a/variables.tf +++ b/variables.tf @@ -1,3 +1,17 @@ +# Copyright 2024 Solace Corporation. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Input variable definitions # Required variables