[cloudformation] Error parsing parameter '--template-body': Unable to load paramfile #7245
-
I am following basic cloudformation tutorial. This is my template contents: AWSTemplateFormatVersion: 2010-09-09
Description: A simple EC2 instance
Resources:
MyEC2Instance:
Type: 'AWS::EC2::Instance'
Properties:
ImageId: ami-006d3995d3a6b963b
InstanceType: t2.micro
KeyName: dev-on-ec2 A key with that name already exists in the AWS account. I am running this command:
Location of the template is: I am getting this error: Error parsing parameter '--template-body': Unable to load paramfile file:///tmp/cfn/ec2.yaml: [Errno 2] No such file or directory: '/tmp/cfn/ec2.yaml' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @santosh there's an existing feature request related to this: #2275. Per this comment YAML isn't currently supported in the command line but there are some workarounds in the comments such as #2275 (comment) that you could try. |
Beta Was this translation helpful? Give feedback.
Hi @santosh there's an existing feature request related to this: #2275. Per this comment YAML isn't currently supported in the command line but there are some workarounds in the comments such as #2275 (comment) that you could try.