Skip to content

Releases: telia-oss/terraform-gcp-gke-logsink-module

v1.0.0

06 Oct 14:22
Compare
Choose a tag to compare

Full Changelog: v0.1.0...v1.0.0

Release Description for v1.0.0

Enhancements:

  1. Support for Multiple Clusters: The new release introduces the capability to handle logs from multiple clusters. Users have now the option to aggregate logs from all clusters under a single naming scheme "all_clusters" or specify individual cluster names.

  2. Dynamic Resource Creation: With the introduction of the for_each directive, resources like the logging bucket, random suffix, logging sink, and IAM bindings are now dynamically created based on the number of clusters specified. This ensures scalability and flexibility in handling logs from multiple clusters.

  3. Customizable Retention Days: The retention period for logs stored in the bucket can now be customized using the var.retention_days variable, providing users with more control over their log retention policies.

  4. Refined Filtering: The default filter has been streamlined to focus on stderr and stdout logs from the source project. Additionally, users can now provide a custom log filter using the var.custom_log_filter variable, offering more granularity in log filtering.

  5. Code Organization: The code has been restructured for better readability, with clear demarcations for local variables and resources.

Deprecations:

  • The var.log_filter_custom variable has been deprecated in favor of the more descriptive var.custom_log_filter.

  • The var.cluster_name variable has been replaced by var.cluster_names to support multiple clusters.

Notes:

Existing users should review their configurations, especially if they were using the var.log_filter_custom or var.cluster_name variables, and update them accordingly to ensure compatibility with v1.0.0.

v0.1.0

03 Oct 14:39
Compare
Choose a tag to compare

Release v0.1.0 - GCP GKE/Anthos Logsink Module

Description:

Introducing the initial release of our Terraform module tailored for Google Cloud's GKE and Anthos clusters! This module facilitates streamlined setup and management of GCP's logging resources, ensuring that your clusters are monitored and their logs are captured efficiently.

Key Features:

  1. Simplified Logging Setup: With just a few parameters like source_project, destination_project, and cluster_name, you can set up a logging sink and bucket tailored to your GKE or Anthos cluster.

  2. Customizable Log Filters: While a default filter is provided to cater to the majority of use cases, this module offers flexibility through the log_filter_custom parameter, allowing users to define their own filter based on specific needs.

  3. Randomized Bucket Naming: To avoid naming conflicts and ensure unique log bucket names, a randomized suffix is appended to the bucket name, based on the cluster name.

  4. IAM Binding Integration: The module also takes care of IAM bindings, ensuring the correct permissions are set for the log sink to write to the bucket.

Usage Instructions:

Users can integrate this module into their Terraform configurations and benefit from a hassle-free logging setup for their GKE and Anthos clusters on GCP. Detailed usage instructions can be found in the module's README.