terraform-aws-modules / terraform-aws-datadog-forwarders

Terraform module to create resources on AWS to forward logs/metrics to Datadog 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/datadog-forwarders/aws
Apache License 2.0
55 stars 41 forks source link

Compatability with Terraform 0.15+ #5

Closed Vrtak-CZ closed 3 years ago

Vrtak-CZ commented 3 years ago

Describe the bug The list function is no longer present in Terraform 0.15.

To Reproduce Just try to use this module with Terraform 0.15

Expected behavior Working with the same behavior as in Terraform 0.14

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 3, in output "this_s3_bucket_id":
│    3:   value       = element(concat(aws_s3_bucket_policy.this.*.id, aws_s3_bucket.this.*.id, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 8, in output "this_s3_bucket_arn":
│    8:   value       = element(concat(aws_s3_bucket.this.*.arn, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 13, in output "this_s3_bucket_bucket_domain_name":
│   13:   value       = element(concat(aws_s3_bucket.this.*.bucket_domain_name, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 18, in output "this_s3_bucket_bucket_regional_domain_name":
│   18:   value       = element(concat(aws_s3_bucket.this.*.bucket_regional_domain_name, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 23, in output "this_s3_bucket_hosted_zone_id":
│   23:   value       = element(concat(aws_s3_bucket.this.*.hosted_zone_id, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 28, in output "this_s3_bucket_region":
│   28:   value       = element(concat(aws_s3_bucket.this.*.region, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 33, in output "this_s3_bucket_website_endpoint":
│   33:   value       = element(concat(aws_s3_bucket.this.*.website_endpoint, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
╷
│ Error: Error in function call
│ 
│   on .terraform/modules/datadog_forwarder.this_s3_bucket/outputs.tf line 38, in output "this_s3_bucket_website_domain":
│   38:   value       = element(concat(aws_s3_bucket.this.*.website_domain, list("")), 0)
│ 
│ Call to function "list" failed: the "list" function was deprecated in
│ Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
│ write a literal list.
╵
bryantbiggs commented 3 years ago

:tada: This issue has been resolved in version 2.7.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 year ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.