-
Notifications
You must be signed in to change notification settings - Fork 568
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for lifecycle rules in simple bucket (#49)
* add support for lifecycle rules * revert main.tf * update readme * update example * dashes * dash * inline
- Loading branch information
1 parent
a0782d7
commit b39e2cd
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,17 @@ module "bucket" { | |
name = "example-bucket" | ||
project_id = "example-project" | ||
location = "us-east1" | ||
|
||
lifecycle_rules = [{ | ||
action = { | ||
type = "Delete" | ||
} | ||
condition = { | ||
age = 365 | ||
with_state = "ANY" | ||
} | ||
}] | ||
|
||
iam_members = [{ | ||
role = "roles/storage.viewer" | ||
member = "user:[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters