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

Deprecated components #4

Open
Spritekin opened this issue Apr 7, 2022 · 0 comments
Open

Deprecated components #4

Spritekin opened this issue Apr 7, 2022 · 0 comments

Comments

@Spritekin
Copy link

The module is throwing deprecation errors with newer versions of the AWS provider:

Warning: Argument is deprecated
with .../module.guardduty.aws_s3_bucket_object.guardduty
on .terraform/modules/guardduty/main.tf line 132, in resource "aws_s3_bucket_object" "guardduty":

  bucket = data.aws_s3_bucket.main.0.id

Use the aws_s3_object resource instead

and

Warning: Argument is deprecated
with .../module.guardduty.aws_s3_bucket_object.guardduty
on .terraform/modules/guardduty/main.tf line 134, in resource "aws_s3_bucket_object" "guardduty":

  key = var.s3_bucket_prefix == "/" ? "/" : format("%s/", (
    substr(var.s3_bucket_prefix, 0, 1) == "/" ?
    substr(var.s3_bucket_prefix, 1, length(var.s3_bucket_prefix)) :
    var.s3_bucket_prefix
  ))

Use the aws_s3_object resource instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant