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

Change how resolve values works #194

Open
shadycuz opened this issue Jul 9, 2023 · 0 comments
Open

Change how resolve values works #194

shadycuz opened this issue Jul 9, 2023 · 0 comments

Comments

@shadycuz
Copy link
Member

shadycuz commented Jul 9, 2023

There are a lot of issues in how we resolve values. Mainly being how tricky it is to know if we are inside an intrinsic function or a condition.

It would be nice if we used a generator and kept track of the previous and next values.

If so we could better handle errors like this:

output "logs_bucket_name" {
  description = "Name of the logs bucket."
  // Unable to resolve Fn::If with value: [
  //   "RetainBucket",
  //   aws_s3_bucket.retain_logs_bucket[0].id,
  //   aws_s3_bucket.logs_bucket[0].id
  // ]
}

Where it is currently no possible to know the "key" that had the error.

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