Skip to content

Commit

Permalink
🎨 #24 一時的に画像を保存するS3バケットのオブジェクトに有効期限を設定
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed May 3, 2021
1 parent 946efe8 commit 3cd0f1f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/aws/images/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ resource "aws_s3_bucket" "upload_images_bucket" {
enabled = true
// 失効した削除マーカーまたは不完全なマルチパートアップロードを削除する
abort_incomplete_multipart_upload_days = 7

// オブジェクトの有効期限
expiration {
days = 10
}
}
}

Expand All @@ -29,6 +34,11 @@ resource "aws_s3_bucket" "cat_images_bucket" {
enabled = true
// 失効した削除マーカーまたは不完全なマルチパートアップロードを削除する
abort_incomplete_multipart_upload_days = 7

// オブジェクトの有効期限
expiration {
days = 10
}
}
}

Expand All @@ -46,6 +56,11 @@ resource "aws_s3_bucket" "created_lgtm_images_bucket" {
enabled = true
// 失効した削除マーカーまたは不完全なマルチパートアップロードを削除する
abort_incomplete_multipart_upload_days = 7

// オブジェクトの有効期限
expiration {
days = 10
}
}
}

Expand Down

0 comments on commit 3cd0f1f

Please sign in to comment.