hashicorp/terraform-provider-aws
Lifecycle configuration for S3 Bucket failing with time out issue for AWS Provider 4.21.0
Aperta
#25.939 aperta il 22 lug 2022
good first issueservice/s3timeouts
Metriche repository
- Star
- (11.045 stelle)
- Metriche merge PR
- (Merge medio 19g 21h) (251 PR mergiate in 30 g)
Descrizione
Error: error waiting for S3 Lifecycle Configuration for bucket (xx-xxx-xx-xx-bucket) to reach expected rules status after update: timeout while waiting for state to become 'READY' (last state: 'NOT_READY', timeout: 3m0s)
AWS Provider: 4.21.0
The terraform apply is failing with the above error and it gets resolved on rerun.
Bucket Configuration
resource "aws_s3_bucket" "exporter_url" {
bucket_prefix = "xx-"
force_destroy = true
tags = var.common_tags
}
resource "aws_s3_bucket_versioning" "exporter_url" {
bucket = aws_s3_bucket.exporter_url.id
versioning_configuration {
status = "Enabled"
}
}
resource "aws_s3_bucket_lifecycle_configuration" "exporter_url" {
bucket = aws_s3_bucket.exporter_url.id
rule {
id = "noncurrent-version-expiration-object-delete-marker"
status = "Enabled"
filter {
prefix = "/"
}
noncurrent_version_expiration {
noncurrent_days = var.s3_lifecycle_noncurrent_version_expiration
}
expiration {
expired_object_delete_marker = true
}
}
}