hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

S3 lifecycle transition error #11464

Open kkeawkittikanchana opened 4 years ago

kkeawkittikanchana commented 4 years ago

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" {

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

  1. create multiple lifecycle in one s3 and have transition in one of life cycle
  2. terraform apply

Important Factoids

References

justinretzolk commented 2 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?