mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
cold
This commit is contained in:
parent
2f22e1f78c
commit
8331b28f5d
1 changed files with 18 additions and 0 deletions
|
|
@ -1,3 +1,21 @@
|
|||
resource "aws_s3_bucket" "backups" {
|
||||
bucket = "nilstrieb-backups"
|
||||
}
|
||||
|
||||
resource "aws_s3_bucket_lifecycle_configuration" "backups_lifecycle" {
|
||||
bucket = aws_s3_bucket.backups.bucket
|
||||
rule {
|
||||
id = "1-cold"
|
||||
|
||||
filter {
|
||||
prefix = "1/"
|
||||
}
|
||||
|
||||
transition {
|
||||
days = 30
|
||||
storage_class = "GLACIER_IR"
|
||||
}
|
||||
|
||||
status = "Enabled"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue