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

unable to use the main.terraform file due versions issue #1

Open
nsaarang opened this issue Apr 19, 2022 · 0 comments
Open

unable to use the main.terraform file due versions issue #1

nsaarang opened this issue Apr 19, 2022 · 0 comments

Comments

@nsaarang
Copy link

unable to use the main.terraform file due versions issue as i am getting these errors

�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mMissing resource instance key�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0m�[0m on main.tf line 18, in resource "aws_s3_bucket_notification" "bucket_notification":
�[31m│�[0m �[0m 18: bucket = "${�[4maws_s3_bucket.lambda_trigger_bucket�[0m.id[count.index]}"�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0mBecause aws_s3_bucket.lambda_trigger_bucket has "count" set, its attributes
�[31m│�[0m �[0mmust be accessed on specific instances.
�[31m│�[0m �[0m
�[31m│�[0m �[0mFor example, to correlate with indices of a referring resource, use:
�[31m│�[0m �[0m aws_s3_bucket.lambda_trigger_bucket[count.index]
�[31m╵�[0m�[0m
�[31m╷�[0m�[0m
�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mError in function call�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0m�[0m on outputs.tf line 14, in output "s3":
�[31m│�[0m �[0m 14: value = "${element(concat(aws_s3_bucket.lambda_trigger_bucket.*.id, �[4mlist(�[0m"")), 0)}"�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0mCall to function "list" failed: the "list" function was deprecated in
�[31m│�[0m �[0mTerraform v0.12 and is no longer available; use tolist([ ... ]) syntax to
�[31m│�[0m �[0mwrite a literal list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant