Pizzaface / Alexa-Chromecast-Skill-2.0

Allows Amazon Alexa to control Google Chromecast - Designed for Raspberry Pi
359 stars 65 forks source link

Error when i try to run /aws-setup.sh #46

Open jonasrafael opened 3 years ago

jonasrafael commented 3 years ago
jonasrafael@Jonass-MacBook-Pro Alexa-Chromecast-Skill-2.0-master 2 % ./aws-setup.sh          
Creating AmazonAlexaSkill role.

usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help

Unknown options: 2/config/aws-lambda-role-policy.json
jonasrafael@Jonass-MacBook-Pro Alexa-Chromecast-Skill-2.0-master 2 % 
jinxo13 commented 3 years ago

I think it's likely due to a space in your folder name. You can either remove the space, or change the matching line in aws-setup.sh to the below, which adds quotes to the filepath parameter.

role_response=$(aws iam create-role --role-name $ROLE_NAME --assume-role-policy-document "file://$(pwd)/config/aws-lambda-role-policy.json")