LoginSignup
2
0

【小ネタ】S3のライフサイクルルールで、非現行バージョンの保持するバージョン数の設定ができない...??

Last updated at Posted at 2023-08-03

はじめに

先日バージョニングを有効化しているS3で以下のライフサイクルルールを設定したところ...
image.png

ルールの作成時にエラーが出ました。
image.png

直訳すると以下の通りですが、
NewerNoncurrentVersionsとは一体なんだろう...。

翻訳
'NewerNoncurrentVersions' for
NoncurrentVersionExpiration action must be a positive integer
↓
NoncurrentVersionExpiration アクションの
「NewerNoncurrentVersions」は正の整数である必要があります

結論

「NewerNoncurrentVersions」=「保持する新しいバージョンの数」です。
なので非現行バージョンのオブジェクトは1バージョンも保持しない、という場合は保持する新しいバージョンの数を空欄で作成しましょう。
image.png

ちなみに公式ドキュメントでは以下の記載があり、
AWSとしては保持する新しいバージョン数はオプション設定なので、
そもそも値を入力する必要がないということなのでしょう...。

オプションで、[Number of newer versions to retain] (保持する新しいバージョンの数) に値を入力して、保持する新しいバージョンの数を指定できます。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0