Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_s3_bucket_inventory is missing some optional_fields #7951

Closed
vfoucault opened this issue Mar 15, 2019 · 4 comments
Closed

aws_s3_bucket_inventory is missing some optional_fields #7951

vfoucault opened this issue Mar 15, 2019 · 4 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service.
Milestone

Comments

@vfoucault
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v0.11.11

  • provider.aws v1.60.0

Affected Resource(s)

  • aws_s3_bucket_inventory

Terraform Configuration Files

"resource" "aws_s3_bucket_inventory" "testbucket" {
  "bucket" = "testbucket"
  "destination" "bucket" {
    "bucket_arn" = "arn:aws:s3:::desttestbucket"
    "encryption" "sse_s3" {}
    "format" = "Parquet"
  }
  "filter" = {
    "prefix" = "bladibla/"
  }
  "included_object_versions" = "All"
  "name" = "testbucketinventory"
  "optional_fields" = ["ETag", "Size", "StorageClass", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "ReplicationStatus", "IsMultipartUploaded", "LastModifiedDate"]
  "schedule" = {
    "frequency" = "Daily"
  }
}

Debug Output

Panic Output

Expected Behavior

the bucket inventory should have been created with all the optional fields

Actual Behavior

Error: aws_s3_bucket_inventory.testbucketinventory: expected optional_fields.4 to be one of [Size LastModifiedDate StorageClass ETag IsMultipartUploaded ReplicationStatus EncryptionStatus], got ObjectLockRetainUntilDate

Error: aws_s3_bucket_inventory.testbucketinventory: expected optional_fields.5 to be one of [Size LastModifiedDate StorageClass ETag IsMultipartUploaded ReplicationStatus EncryptionStatus], got ObjectLockMode

Error: aws_s3_bucket_inventory.testbucketinventory: expected optional_fields.6 to be one of [Size LastModifiedDate StorageClass ETag IsMultipartUploaded ReplicationStatus EncryptionStatus], got ObjectLockLegalHoldStatus

Steps to Reproduce

  1. terraform plan

Important Factoids

References

  • #0000
@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service. labels Mar 17, 2019
@bflad bflad added this to the v2.3.0 milestone Mar 17, 2019
@bflad
Copy link
Contributor

bflad commented Mar 17, 2019

Support for the below additional optional field values has been merged and will release with version 2.3.0 of the Terraform AWS Provider, likely middle of this week. 👍

  • ObjectLockRetainUntilDate
  • ObjectLockMode
  • ObjectLockLegalHoldStatus

@bflad
Copy link
Contributor

bflad commented Mar 21, 2019

This has been released in version 2.3.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/s3 Issues and PRs that pertain to the s3 service.
Projects
None yet
Development

No branches or pull requests

3 participants