From 95a797983508b06e6f23cdc9dcb201410d9404b1 Mon Sep 17 00:00:00 2001 From: jbeemster Date: Wed, 31 Jan 2024 15:56:55 +0100 Subject: [PATCH] Update LICENSE to SLULA (closes #9) --- LICENSE | 30 ++++++++++++++++++------------ README.md | 20 ++++++++++---------- main.tf | 2 ++ templates/startup-script.sh.tmpl | 1 + variables.tf | 11 +++++++++++ 5 files changed, 42 insertions(+), 22 deletions(-) diff --git a/LICENSE b/LICENSE index 385591a..6abbe69 100644 --- a/LICENSE +++ b/LICENSE @@ -1,14 +1,20 @@ -# Snowplow Community License Agreement +# Snowplow Limited Use License Agreement -_Version 1.0, January 2023_ +_Version 1.0, January 2024_ -This Snowplow Community License Agreement, Version 1.0 (the “Agreement”) sets forth the terms on which Snowplow Analytics, Ltd. (“Snowplow”) makes available certain software made available by Snowplow under this Agreement (the “Software”). BY INSTALLING, DOWNLOADING, ACCESSING, OR USING ANY OF THE SOFTWARE, YOU AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO SUCH TERMS AND CONDITIONS, YOU MUST NOT USE THE SOFTWARE. IF YOU ARE RECEIVING THE SOFTWARE ON BEHALF OF A LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE THE ACTUAL AUTHORITY TO AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT ON BEHALF OF SUCH ENTITY. “Licensee” means you, an individual, or the entity on whose behalf you are receiving the Software. +This Snowplow Limited Use License Agreement, Version 1.0 (the “Agreement”) sets forth the terms on which Snowplow Analytics, Ltd. (“Snowplow”) makes available certain software (the “Software”). BY INSTALLING, DOWNLOADING, ACCESSING, OR USING ANY OF THE SOFTWARE, YOU AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO SUCH TERMS AND CONDITIONS, YOU MUST NOT USE THE SOFTWARE. IF YOU ARE RECEIVING THE SOFTWARE ON BEHALF OF A LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE THE ACTUAL AUTHORITY TO AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT ON BEHALF OF SUCH ENTITY. “Licensee” means you, an individual, or the entity on whose behalf you are receiving the Software. ## LICENSE GRANT AND CONDITIONS -**1.1 License.** Subject to the terms and conditions of this Agreement, Snowplow hereby grants to Licensee a non-exclusive, royalty-free, worldwide, non-transferable, non-sublicenseable license during the term of this Agreement to: (a) use the Software; (b) prepare modifications and derivative works of the Software; and (c) reproduce copies of the Software (the “License”). No right to distribute or make available the Software is granted under this License. Licensee is not granted the right to, and Licensee shall not, exercise the License for an Excluded Purpose. For purposes of this Agreement, “Excluded Purpose” means making available any on-premises or distributed software product, software-as-a-service, platform-as-a-service, infrastructure-as-a-service, or other similar online service, that competes with any products or services that Snowplow or any of its affiliates provides using the Software. +**1.1 License.** Subject to the terms and conditions of this Agreement, Snowplow hereby grants to Licensee a non-exclusive, royalty-free, worldwide, non-transferable, non-sublicensable license during the term of this Agreement to: (a) use the Software; (b) prepare modifications and derivative works of the Software; and (c) reproduce copies of the Software (the “License”). No right to distribute or make available the Software is granted under this License. Licensee is not granted the right to, and Licensee shall not, exercise the License for any Excluded Purpose. -**1.2 Conditions.** In consideration of the License, Licensee’s distribution of the Software is subject to the following conditions: +**1.2** For purposes of this Agreement, an “Excluded Purpose” is any use that is either a Competing Use or a Highly-Available Production Use, or both of them. + +* **1.2.1** A “Competing Use” is making available any on-premises or distributed software product, or any software-as-a-service, platform-as-a-service, infrastructure-as-a-service, or other similar online service, that competes with any products or services that Snowplow or any of its affiliates provides using the Software. + +* **1.2.2** Highly-Available Production Use is any highly-available use, including without limitation any use where multiple instances of any Software component run concurrently to avoid a single point of failure, in a production environment, where production means use on live data. + +**1.3 Conditions.** In consideration of the License, Licensee’s use of the Software is subject to the following conditions: * **a.** Licensee must cause any Software modified by Licensee to carry prominent notices stating that Licensee modified the Software. @@ -16,15 +22,15 @@ This Snowplow Community License Agreement, Version 1.0 (the “Agreement”) set ``` This software is made available by Snowplow Analytics, Ltd., - under the terms of the Snowplow Community License Agreement, Version 1.0 - located at https://docs.snowplow.io/community-license-1.0 - BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY OF THE SOFTWARE, - YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. + under the terms of the Snowplow Limited Use License Agreement, Version 1.0 + located at https://docs.snowplow.io/limited-use-license-1.0 + BY INSTALLING, DOWNLOADING, ACCESSING, USING OR DISTRIBUTING ANY PORTION + OF THE SOFTWARE, YOU AGREE TO THE TERMS OF SUCH LICENSE AGREEMENT. ``` -**1.3 Licensee Modifications.** Licensee may add its own copyright notices to modifications made by Licensee. +**1.4 Licensee Modifications.** Licensee may add its own copyright notices to modifications made by Licensee. -**1.4 No Sublicensing.** The License does not include the right to sublicense the Software, however, each recipient to which Licensee provides the Software may exercise the Licenses so long as such recipient agrees to the terms and conditions of this Agreement. +**1.5 No Sublicensing.** The License does not include the right to sublicense the Software, however, each recipient to which Licensee provides the Software may exercise the Licenses so long as such recipient agrees to the terms and conditions of this Agreement. ## TERM AND TERMINATION @@ -40,7 +46,7 @@ SNOWPLOW HEREBY DISCLAIMS ANY AND ALL WARRANTIES AND CONDITIONS, EXPRESS, IMPLIE ## LIMITATION OF LIABILITY -SNOWPLOW WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO, LOST PROFITS OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, INDIRECT, OR DIRECT DAMAGES, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. THE FOREGOING SHALL APPLY TO THE EXTENT PERMITTED BY APPLICABLE LAW. +SNOWPLOW WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO LOST PROFITS OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, INDIRECT, OR DIRECT DAMAGES, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. THE FOREGOING SHALL APPLY TO THE EXTENT PERMITTED BY APPLICABLE LAW. ## GENERAL diff --git a/README.md b/README.md index 6fcd33d..1f9b929 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,8 @@ module "pipeline_db" { module "postgres_loader_enriched" { source = "snowplow-devops/postgres-loader-pubsub-ce/google" + accept_limited_use_license = true + name = "pg-loader-enriched-server" network = var.network @@ -103,6 +105,8 @@ module "bad_1_topic" { module "postgres_loader_bad" { source = "snowplow-devops/postgres-loader-pubsub-ce/google" + accept_limited_use_license = true + name = "pg-loader-bad-server" network = var.network @@ -191,6 +195,7 @@ module "postgres_loader_bad" { | [purpose](#input\_purpose) | The type of data the loader will be pulling which can be one of ENRICHED\_EVENTS or JSON (Note: JSON can be used for loading bad rows) | `string` | n/a | yes | | [region](#input\_region) | The name of the region to deploy within | `string` | n/a | yes | | [schema\_name](#input\_schema\_name) | The database schema to load data into (e.g atomic \| atomic\_bad) | `string` | n/a | yes | +| [accept\_limited\_use\_license](#input\_accept\_limited\_use\_license) | Acceptance of the SLULA terms (https://docs.snowplow.io/limited-use-license-1.0/) | `bool` | `false` | no | | [app\_version](#input\_app\_version) | App version to use. This variable facilitates dev flow, the modules may not work with anything other than the default value. | `string` | `"0.3.1"` | no | | [associate\_public\_ip\_address](#input\_associate\_public\_ip\_address) | Whether to assign a public ip address to this instance; if false this instance must be behind a Cloud NAT to connect to the internet | `bool` | `true` | no | | [custom\_iglu\_resolvers](#input\_custom\_iglu\_resolvers) | The custom Iglu Resolvers that will be used by the loader to resolve and validate events |
list(object({
name = string
priority = number
uri = string
api_key = string
vendor_prefixes = list(string)
}))
| `[]` | no | @@ -222,15 +227,9 @@ module "postgres_loader_bad" { # Copyright and license -The Terraform Google Postgres Loader on Compute Engine project is Copyright 2021-present Snowplow Analytics Ltd. - -Licensed under the [Snowplow Community License](https://docs.snowplow.io/community-license-1.0). _(If you are uncertain how it applies to your use case, check our answers to [frequently asked questions](https://docs.snowplow.io/docs/contributing/community-license-faq/).)_ +Copyright 2021-present Snowplow Analytics Ltd. -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. +Licensed under the [Snowplow Limited Use License Agreement][license]. _(If you are uncertain how it applies to your use case, check our answers to [frequently asked questions][license-faq].)_ [release]: https://github.com/snowplow-devops/terraform-google-postgres-loader-pubsub-ce/releases/latest [release-image]: https://img.shields.io/github/v/release/snowplow-devops/terraform-google-postgres-loader-pubsub-ce @@ -238,8 +237,9 @@ limitations under the License. [ci]: https://github.com/snowplow-devops/terraform-google-postgres-loader-pubsub-ce/actions?query=workflow%3Aci [ci-image]: https://github.com/snowplow-devops/terraform-google-postgres-loader-pubsub-ce/workflows/ci/badge.svg -[license]: https://docs.snowplow.io/docs/contributing/community-license-faq/ -[license-image]: https://img.shields.io/badge/license-Snowplow--Community-blue.svg?style=flat +[license]: https://docs.snowplow.io/limited-use-license-1.0/ +[license-image]: https://img.shields.io/badge/license-Snowplow--Limited--Use-blue.svg?style=flat +[license-faq]: https://docs.snowplow.io/docs/contributing/limited-use-license-faq/ [registry]: https://registry.terraform.io/modules/snowplow-devops/postgres-loader-pubsub-ce/google/latest [registry-image]: https://img.shields.io/static/v1?label=Terraform&message=Registry&color=7B42BC&logo=terraform diff --git a/main.tf b/main.tf index 580f494..cc59ee0 100644 --- a/main.tf +++ b/main.tf @@ -181,6 +181,8 @@ locals { }) startup_script = templatefile("${path.module}/templates/startup-script.sh.tmpl", { + accept_limited_use_license = var.accept_limited_use_license + config_b64 = base64encode(local.config) iglu_resolver_b64 = base64encode(local.iglu_resolver) version = local.app_version diff --git a/templates/startup-script.sh.tmpl b/templates/startup-script.sh.tmpl index 1826e37..49f017b 100644 --- a/templates/startup-script.sh.tmpl +++ b/templates/startup-script.sh.tmpl @@ -58,6 +58,7 @@ sudo docker run \ %{ endif ~} --mount type=bind,source=$${CONFIG_DIR},target=/snowplow/config \ --env JDK_JAVA_OPTIONS='${java_opts}' \ + --env ACCEPT_LIMITED_USE_LICENSE=${accept_limited_use_license} \ snowplow/snowplow-postgres-loader:${version} \ --config /snowplow/config/postgres_loader.json \ --resolver /snowplow/config/iglu_resolver.json diff --git a/variables.tf b/variables.tf index 98b2736..b4fa09a 100644 --- a/variables.tf +++ b/variables.tf @@ -1,3 +1,14 @@ +variable "accept_limited_use_license" { + description = "Acceptance of the SLULA terms (https://docs.snowplow.io/limited-use-license-1.0/)" + type = bool + default = false + + validation { + condition = var.accept_limited_use_license + error_message = "Please accept the terms of the Snowplow Limited Use License Agreement to proceed." + } +} + variable "name" { description = "A name which will be pre-pended to the resources created" type = string