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

No argument or block type is named "values". #510

Open
Zshader opened this issue Aug 5, 2021 · 2 comments
Open

No argument or block type is named "values". #510

Zshader opened this issue Aug 5, 2021 · 2 comments
Assignees

Comments

@Zshader
Copy link

Zshader commented Aug 5, 2021

❔ Question

How to fix this issue?
Tried using terraform's latest versions as well as previous versions(0.11.x) as recommended in ->
Install fails: "Execution encountered error" - No argument or block type is named "values". #464

but its still failing, while using terraform 0.11.x versions the the script is failing at "init" phase and while using newer versions of terraform 0.12+ facing this issue.

[root@ip installer]# sudo python3 manager.py install

###########################################################################################################################
####################################### ____ ____ ######################################
####################################### |/||| PacBot |/||| ######################################
####################################### . || . Infra setup and deployment . || . ######################################
####################################### || || ######################################
###########################################################################################################################

Step 1: Checking if required tools are availables
Tool: Maven, checking ................................................................ [Found]
Tool: Git, checking .................................................................. [Found]
Tool: MySQL client, checking ......................................................... [Found]
Tool: Terraform, checking ............................................................ [Found]
Tool: Nodejs, checking ............................................................... [Found]
Tool: npm, checking .................................................................. [Found]
Tool: Angular, checking .............................................................. [Found]
Tool: Yarn, checking ................................................................. [Found]
Tool: Docker, checking ............................................................... [Found]
Required tools are available!!!

Step 2: Checking if required python packages are available
Package: docker, Module: Client, checking ............................................ [Found]
Module: boto3, checking .............................................................. [Found]
Required python packages are available!!!

Step 3: Reading required inputs from user

Select AWS authentication mechanism:

1. Using access key and secret key

2. Assuming an IAM role

3. Using IAM role attached to the this instance

Type 1 or 2 or 3 to continue to create services in AWS: 1
Required inputs are available!!!

Step 4: Checking settings and inputs
Checking VPC and CIDR Blocks ......................................................... [Valid]
Checking VPC subnets ................................................................. [Valid]
Administrator access policy .......................................................... [Present]

Step 5: Checking resource existence
Resource existence check completed!!!

Step 6: Terraform file generation started
Terraform file generation completed!!!

Step 7: Terraform init started
Terraform init executed successfully!!!
Completed in 0m 4s

Step 8: Terraform plan started
Execution encountered error
Completed in 0m 2s
Error occured, please check error log for more details
[root@ installer]# cd log/error.log
bash: cd: log/error.log: Not a directory
[root@ installer]# tail -20log/error.log
tail: option used in invalid context -- 2
[root@ installer]# tail -20 log/error.log
No argument or block type is named "values".

Error: Extraneous JSON object property

on pacbot_app_alb_listener_rules_StatisticsALBListenerRule.tf.json line 11, in resource.aws_lb_listener_rule.pacbot_app_alb_listener_rules_StatisticsALBListenerRule.condition:
11: "field": "path-pattern",

No argument or block type is named "field".

Error: Extraneous JSON object property

on pacbot_app_alb_listener_rules_StatisticsALBListenerRule.tf.json line 12, in resource.aws_lb_listener_rule.pacbot_app_alb_listener_rules_StatisticsALBListenerRule.condition:
12: "values": [

No argument or block type is named "values".

@jerry1091
Copy link

I'm seeing the same issue

@jerry1091
Copy link

Issue cause by using newer terraform version. It appears to work with Terraform v0.11.15, I also had to use node 8.15.0

@varadh10 varadh10 self-assigned this Jan 20, 2024
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

3 participants