I tried to build ec2 instance using below code, I am getting error stating "The requested configuration is currently not supported (Service: AmazonEC2; Status Code: 400; Error Code: Unsupported; Request ID: 82c6f0ac-dc18-4f8f-ae21-0ea1558946a4; Proxy: null)"
Please assist:
{
"Parameters": {
"InstanceType": {
"Type": "String"
},
"KeyName": {
"Description": "AWS::EC2::KeyPair::KeyName",
"Type": "String"
}
},
"Resources": {
"MyEC2Instance": {
"Type": "AWS::EC2::Instance",
"Properties": {
"ImageId": "ami-0476b0c0bd036545d",
"KeyName": {
"Ref": "KeyName"
},
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sdm",
"Ebs": {
"VolumeType": "io1",
"Iops": "200",
"DeleteOnTermination": "false",
"VolumeSize": "20"
}
},
{
"DeviceName": "/dev/sdk",
"NoDevice": {}
}
]
}
}
}
}