Closed gw-versent closed 1 year ago
Here's a list of all of the deprecated arguments that generated a warning when I ran terraform plan
:
→ terraform validate -json | jq '.diagnostics[] | {detail: .detail, filename: .range.filename, start_line: .range.start.line}'
{
"detail": "Use the attribute \"override_policy_documents\" instead.",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 159
}
{
"detail": "Use the attribute \"source_policy_documents\" instead.",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 158
}
{
"detail": "Use the aws_s3_bucket_versioning resource instead",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 1
}
{
"detail": "Use the aws_s3_bucket_server_side_encryption_configuration resource instead",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 1
}
{
"detail": "Use the aws_s3_bucket_policy resource instead",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 8
}
{
"detail": "Use the aws_s3_bucket_acl resource instead",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 6
}
{
"detail": "Use the aws_s3_bucket_lifecycle_configuration resource instead",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 1
}
{
"detail": "Use the aws_s3_bucket_logging resource instead",
"filename": ".terraform/modules/terraform_state_backend.log_storage/main.tf",
"start_line": 1
}
{
"detail": "Use the aws_s3_bucket_acl resource instead",
"filename": ".terraform/modules/terraform_state_backend/main.tf",
"start_line": 162
}
{
"detail": "Use the aws_s3_bucket_logging resource instead",
"filename": ".terraform/modules/terraform_state_backend/main.tf",
"start_line": 156
}
{
"detail": "Use the aws_s3_bucket_server_side_encryption_configuration resource instead",
"filename": ".terraform/modules/terraform_state_backend/main.tf",
"start_line": 156
}
{
"detail": "Use the aws_s3_bucket_versioning resource instead",
"filename": ".terraform/modules/terraform_state_backend/main.tf",
"start_line": 156
}
{
"detail": "Use the aws_s3_bucket_policy resource instead",
"filename": ".terraform/modules/terraform_state_backend/main.tf",
"start_line": 164
}
{
"detail": "Use the aws_s3_bucket_replication_configuration resource instead",
"filename": ".terraform/modules/terraform_state_backend/main.tf",
"start_line": 156
}
Yes, this needs to be updated in this module as at some point it will stop working with new aws tf provider.
something like in this module probably: https://github.com/nozaq/terraform-aws-remote-state-s3-backend
Any chance the PR could get merged? Or, some other means of addressing these issues?
Yeah I want to use this module but is it deprecated? Why are the PR's to fix these basic errors blocked?
Describe the Bug
terraform apply
completed successfully. However, there is a warning in the log that will need attention in future:╷ │ Warning: Argument is deprecated │ │ with module.terraform_state_backend.module.log_storage.aws_s3_bucket.default, │ on .terraform/modules/terraform_state_backend.log_storage/main.tf line 1, in resource "aws_s3_bucket" "default": │ 1: resource "aws_s3_bucket" "default" { │ │ Use the aws_s3_bucket_logging resource instead │ │ (and 21 more similar warnings elsewhere)
Expected Behavior
No deprecated argument warning.
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots