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

Getting Error during creating resources with terraform #376

Open
PranaySingh61 opened this issue Dec 2, 2022 · 0 comments
Open

Getting Error during creating resources with terraform #376

PranaySingh61 opened this issue Dec 2, 2022 · 0 comments

Comments

@PranaySingh61
Copy link

Hi, We had a working pipeline that stopped functioning this week.

This is the error message that we see every time the pipeline runs. Can you please help?

Let me know any more details are needed

module.tf_next.module.statics_deploy.aws_sqs_queue_policy.this: Refreshing state... [id=https://sqs.us-east-1.amazonaws.com/444178128113/tf-next-web-site2022062411521676860000000a]

│ Error: Invalid function argument

│ on .terraform/modules/tf_next/main.tf line 4, in locals:
│ 4: config_file = jsondecode(file("${local.config_dir}/config.json"))
│ ├────────────────
│ │ while calling file(path)
│ │ local.config_dir is "./.next-tf"

│ Invalid value for "path" parameter: no file exists at
│ "./.next-tf/config.json"; this function works only with files that are
│ distributed as part of the configuration source code, so if this file will
│ be created by a resource in this configuration you must instead obtain this
│ result from an attribute of that resource.

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