Issue with kitchen.yml

Hi, I’m working on a kitchen.yml file for creating windows instances on ec2 for cookbook testing, etc. I run kitchen list and it blows up kitchen. It’s based on a working yml file for linux testing in ec2. I’m not sure what the issue is. The error seems to be about an to_sym conversion that’s failing but I can’t tell where. Any assistance will be appreciated.

Here’s the error I’m seeing:

PS C:\Users\robbro04\cookbooks\windows-shares> kitchen diagnose

timestamp: 2021-05-20 13:34:58 UTC
kitchen_version: 2.11.2
instances:
error:
exception: |-
#<NoMethodError: undefined method to_sym' for 1:Integer* *Did you mean? to_s&gt;* *message: |-* *undefined method to_sym’ for 1:Integer
Did you mean? to_s
backtrace:
- C:/opscode/chef-workstation/embedded/lib/ruby/gems/2.7.0/gems/test-kitchen-2.11.2/lib/kitchen/util.rb:66:in
<clipped remaining output>

Here’s my yml file:

driver:
name: ec2
aws_ssh_key_id: Oregon-KP-itess-ses-dev-linux
region: us-west-2
availability_zone: c
subnet_id: subnet-cfccc397
security_group_ids:
- sg-0b8c81e7cdcad2e25
iam_profile_name: TestKitchenTesting
instance_type: t3.small
skip_cost_warning: true
tags:
Name: c1-r-3ess-test01
Application: Linux Test Instance
Vertical: ITESS
Project: A-System Administration
Environment: TEST
Support: mailto:bob.brown@roberthalf.com|bob.brown@roberthalf.com

transport:
username: ec2-user
ssh_key: ~/.ssh/Oregon-KP-itess-ses-dev-linux.pem
connection_timeout: 10
connection_retries: 5

provisioner:
name: chef_solo
product_name: chef
product_version: 13.12.14
#vproduct_version: 12.22.5
# install_strategy: always
log_level: auto

verifier:
name: inspec
# reporter:
# - junit:reports/xml/inspec-%{platform}-%{suite}.xml

platforms:
- name: windows-2016
driver:
image_search:
owner-id: “084146802151”
name: RH-Windows_Server-2016-Base-x86_64-HVM-GP2-*
block_device_mappings:
- device_name: /dev/xvdf
ebs:
volume_type: gp2
volume_size: 10
delete_on_termination: true
transport:
name: winrm
ssh_key: ~/.ssh/Oregon-KP-itess-ses-dev-linux.pem
username: Administrator
port: 5985
- name: windows-2019
driver:
image_search:
owner-id: “084146802151”
name: RH-Windows_Server-2019-Base-x86_64-HVM-GP2-*
block_device_mappings:
- device_name: /dev/xvdf
ebs:
volume_type: gp2
volume_size: 10
delete_on_termination: true
transport:
name: winrm
ssh_key: ~/.ssh/Oregon-KP-itess-ses-dev-linux.pem
username: Administrator
port: 5985

suites:
- name: default
run_list:
- recipe[windows-shares::default]
verifier:
inspec_tests:
- test/integration/default
attributes:
- storage:
- disks:
1:
id: 1
type: primary
fs: ntfs
drive: D
- smb_shares:
1:
id: cogshare
path: ‘D:\cogshare’
create: true
rwgrp: System
rogrp: System

Okay, I found the issue - I had 2 1: and changed them to “1”: and this fixed the complaint