Skip to content

google_storage_bucket.lifecycle_rule.condition.is_live is not supported #409

@q42jaap

Description

@q42jaap

TL;DR

The api supports isLive, while the terraform lifecycle_rule does not have the is_live property.

Docs: https://cloud.google.com/storage/docs/lifecycle#islive
Api: https://cloud.google.com/storage/docs/json_api/v1/buckets#lifecycle.rule.condition.isLive

Terraform Resources

Terraform https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket#nested_condition

Detailed design

I think the is_live property should be easy to add, but there might be a reason this is not the case or an unwanted feature. It should be at least mentioned in the docs for the terraform resource.

Additional information

As far as I understood the docs, you can emulate the isLive: false with new numNewerVersions: 1 (or a higher number). However, isLive: true is not expressible by numNewerVersions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions