You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a B2 bucket has its lifecycle settings configured to "Keep only the last version of the file" via the web interface:
Then the provider will unnecessarily require that file_name_prefix be defined and will always instead want to create a custom lifecycle rule.
Error from terraform plan:
╷
│ Error: Missing required argument
│
│ on redacted.tf line 6, in resource "b2_bucket" "redacted":
│ 6: lifecycle_rules {
│
│ The argument "file_name_prefix" is required, but no definition was found.
╵
As stated in #3, fileNamePrefix is required to be an empty string in order to apply the rules to every file in the bucket - that why this parameter is required which is aligned with the B2 API
If a B2 bucket has its lifecycle settings configured to "Keep only the last version of the file" via the web interface:
Then the provider will unnecessarily require that
file_name_prefix
be defined and will always instead want to create a custom lifecycle rule.Error from terraform plan:
Steps to reproduce
terraform import b2_bucket.example [bucket_id]
terraform plan
file_name_prefix
is definedVersion info
The text was updated successfully, but these errors were encountered: