Skip to content

Conversation

@Naveenchand06
Copy link

I have implemented the enhancement requested in Issue #395 by exposing the ability to configure the terminal_storage_class when Google Cloud Storage Autoclass is enabled

Previously, the module only exposed the enabled flag for Autoclass, defaulting the terminal storage class to NEARLINE with no option to override it. This update introduces a new variable, terminal_storage_class, allowing users to specify a custom value (example: ARCHIVE) per bucket. defaults to NEARLINE

autoclass {
  enabled = lookup(
    var.autoclass,
    lower(each.value),
    false,
  )
+  terminal_storage_class = lookup(
+    var.autoclass,
+    lower(each.value),
+    false,
+  ) ? lookup(var.terminal_storage_class, lower(each.value), "NEARLINE") : null
}

Add new variable

 variable "terminal_storage_class" {
   description = "Optional map of lowercase unprefixed bucket name => terminal storage class, defaults to NEARLINE."
   type        = map(string)
   default     = {}
 }

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Jan 19, 2026
@Naveenchand06
Copy link
Author

Please review my PR

@github-actions github-actions bot removed the Stale label Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant