Open kkeawkittikanchana opened 4 years ago
Hey @kkeawkittikanchana 👋 Thank you for taking the time to file this issue! Given that there's been a number of AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior?
Community Note
Terraform Version
Terraform v0.12.18
Affected Resource(s)
aws_s3_bucket {lifecycle_rule{transition}}
Terraform Configuration Files
State
`+ resource "aws_s3_bucket" "main" {
acceleration_status = (known after apply)
acl = "private"
arn = (known after apply)
bucket = (known after apply)
bucket_domain_name = (known after apply)
bucket_prefix = "tf-module"
bucket_regional_domain_name = (known after apply)
force_destroy = false
hosted_zone_id = (known after apply)
id = (known after apply)
region = (known after apply)
request_payer = (known after apply)
tags = {
"Name" = "s3-tf-module-test-tf"
}
website_domain = (known after apply)
website_endpoint = (known after apply)
lifecycle_rule {
enabled = true
id = "weekly_backup"
prefix = "/Backup/Weekly"
tags = {
expiration {
noncurrent_version_expiration {
noncurrent_version_transition {
transition {
lifecycle_rule {
enabled = true
id = "backup_log"
prefix = "/Backup/Log"
tags = {
"Name" = "s3-lifecycle-tf-module-test-tf"
}
expiration {
noncurrent_version_expiration {
noncurrent_version_transition {
transition {
server_side_encryption_configuration {
versioning {
Debug Output
`aws_s3_bucket.main: Creating...
Error: configuration for aws_s3_bucket.main still contains unknown values during apply (this is a bug in Terraform; please report it!) `
Expected Behavior
It should create s3 with transition life cycle.
Actual Behavior
When I tried to input life cycle it keep showing error after apply. I tried with GLACIER and STANDARD_IA. Both doesn't work. I also made sure transition days is over 30.
Steps to Reproduce
terraform apply
Important Factoids
References
0000