resolved issue

[Solved] EMR Cloudformation: Error parsing parameter ‘–parameters’: Expected: ‘=’, received: ‘EOF’ for input

Issue: While executing AWS CLI for launching Cloudformation EMR stack, it throws the following error.

Error parsing parameter '--parameters': Expected: '=', 
received: 'EOF' for input

Solution: You will get this error if you pass the absolute template path without the file:// at the beginning of the EM Cloudformation template or parameter file path.

For example, if you pass the following

aws cloudformation create-stack --stack-name demo-stack --template-body /home/demo/ec2-template.yaml --parameters /home/demo/ec2-parameter.json

However, if you pass the template path with file:// prefix as shown below, it should not throw any error.

aws cloudformation create-stack --stack-name demo-stack --template-body file:///home/demo/ec2-template.yaml --parameters file:///home/demo/ec2-parameter.json

This is applicable for all the aws cli parameters which requires the file path as template or a parameter.

resolved issue

Other Interesting Blogs

Leave a Comment

Share via
Copy link
Powered by Social Snap