Error when i try to run /aws-setup.sh
jonasrafael opened this issue · 1 comments
jonasrafael commented
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
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")