Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for lifecycle rules #17

Closed
naseemkullah opened this issue Oct 24, 2019 · 1 comment · Fixed by #19
Closed

Add support for lifecycle rules #17

naseemkullah opened this issue Oct 24, 2019 · 1 comment · Fixed by #19
Assignees
Labels
enhancement New feature or request triaged Scoped and ready for work

Comments

@naseemkullah
Copy link
Contributor

As per https://www.terraform.io/docs/providers/google/r/storage_bucket.html#lifecycle_rule

@morgante morgante added the question Further information is requested label Oct 24, 2019
@morgante
Copy link
Contributor

Currently we don't have support, we should add it!

Potential input:

module "gcs_buckets" {
  source  = "terraform-google-modules/cloud-storage/google"
  version = "~> 0.1"
  project_id  = "<PROJECT ID>"
  names = ["first", "second"]
  prefix = "my-unique-prefix"
  set_admin_roles = true
  admins = ["group:[email protected]"]
  versioning = {
    first = true
  }
  bucket_admins = {
    second = "user:[email protected],[email protected]"
  }
  lifecycle_rules = [{
    action = "SetStorageClass"
    storage_class = "COLDLINE"
    condition = {
      created_before = "2019-06-14"
    }
  }]
}

@morgante morgante added enhancement New feature or request and removed question Further information is requested labels Oct 24, 2019
@morgante morgante changed the title Q: How to declare lifecycle rule? How to declare lifecycle rule? Oct 24, 2019
@morgante morgante changed the title How to declare lifecycle rule? How to declare a lifecycle rule? Oct 24, 2019
@morgante morgante added the triaged Scoped and ready for work label Oct 24, 2019
@morgante morgante changed the title How to declare a lifecycle rule? Add support for lifecycle rules Oct 28, 2019
@kopachevsky kopachevsky self-assigned this Nov 1, 2019
kopachevsky added a commit to kopachevsky/terraform-google-cloud-storage that referenced this issue Nov 12, 2019
kopachevsky added a commit to kopachevsky/terraform-google-cloud-storage that referenced this issue Nov 20, 2019
Updated variables and readme files
kopachevsky added a commit to kopachevsky/terraform-google-cloud-storage that referenced this issue Nov 20, 2019
Added support for lifecycle rules
Updated tests and lints
Updated variables and readme files
kopachevsky added a commit to kopachevsky/terraform-google-cloud-storage that referenced this issue Nov 20, 2019
Added support for lifecycle rules
Updated tests and lints
Updated variables and readme files
kopachevsky added a commit to kopachevsky/terraform-google-cloud-storage that referenced this issue Nov 20, 2019
Added support for lifecycle rules
Updated tests and lints
Updated variables and readme files
kopachevsky added a commit to kopachevsky/terraform-google-cloud-storage that referenced this issue Nov 20, 2019
Added support for lifecycle rules
Updated tests and lints
Updated variables and readme files
kopachevsky added a commit to kopachevsky/terraform-google-cloud-storage that referenced this issue Nov 20, 2019
Added support for lifecycle rules
Updated tests and lints
Updated variables and readme files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged Scoped and ready for work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants