title: Error parsing parameter '--parameters': Expected: '=', received: 'P'
body: <p>I am working with aws cli cloudformation. While using the JSON parameters file along with yml template, I keep getting the error. I tried using create stack update stack as well as the change set.</p>
  
  <pre><code>Error parsing parameter '--parameters': Expected: '=', received: 'P' for input: 
  - ParameterKey: FunctionName 
    ^ 
    ParameterValue: taskaplambda 
  - ParameterKey: MemorySize 
    ParameterValue: 512 
  - ParameterKey: Timeout 
    ParameterValue: 5 
  
  </code></pre>
  
  <p>Where my command is:</p>
  
  <pre><code>aws cloudformation update-stack --stack-name apstack --template-body file://templates/cflambdatemplate.yaml --parameters file://params/param.json
  </code></pre>
  
  <p>And my param.json is:</p>
  
  <pre><code>[
      {
          "ParameterKey": "FunctionName",
          "ParameterValue": "taskaplambda"
      },
      {
          "ParameterKey": "MemorySize",
          "ParameterValue": 512
      },
      {
          "ParameterKey": "Timeout",
          "ParameterValue": 5
      }
  ]
  </code></pre>
  
  <p>This is my YAML file</p>
  
  <p>cflambdatemplate.yaml</p>
  
  <pre><code>Transform: AWS::Serverless-2016-10-31
  Resources:
    tasklambda:
      Type: AWS::Serverless::Function
      Properties:
        FunctionName: !Ref FunctionName
        Handler: lambda_function.lambda_handler
        MemorySize: !Ref MemorySize
        Role:
          Fn::GetAtt: 
            - "tasklambdarole"
            - "Arn"
        Runtime: python3.7
        Timeout: !Ref Timeout
        CodeUri: 
          Bucket: taskapbucket
          Key: apbuild/lambda_function.zip
  
    tasklambdarole:
      Type: "AWS::IAM::Role"
      Properties: 
        AssumeRolePolicyDocument: 
          Version: "2012-10-17"
          Statement: 
            - 
              Effect: "Allow"
              Principal: 
                Service: 
                  - "lambda.amazonaws.com"
              Action: 
                - "sts:AssumeRole"
        Path: "/"
    taskPolicies: 
      Type: "AWS::IAM::Policy"
      Properties: 
        PolicyName: "root"
        PolicyDocument: 
          Version: "2012-10-17"
          Statement: 
            - 
              Effect: "Allow"
              Action: "*"
              Resource: "*"
        Roles: 
          - 
            Ref: "tasklambdarole"
  
  Parameters:
    FunctionName:
      Type: String
      MinLength: '3'
      MaxLength: '18'
    MemorySize:
      Type: Number
      MinValue: '128'
      MaxValue: '1024'
    Timeout:
      Type: Number
      MinValue: '1'
      MaxValue: '15'
  
  </code></pre>
  
  <p>I have been trying this with every possibility, but it keeps giving me an error.  </p>