hashicorp/terraform-provider-aws
Lifecycle configuration for S3 Bucket failing with time out issue for AWS Provider 4.21.0
开放
#25,939 创建于 2022年7月22日
good first issueservice/s3timeouts
仓库指标
- 星标
- (11,045 个星标)
- PR 合并指标
- (平均合并 19天 21小时) (30 天内合并 251 个 PR)
描述
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
}
}
}