title: CloudFormation Template to accept parameter from external file
body: <p>I am trying to achieve the same thing but for Parameter Store. My scenario is, Developers will provide a .json file with key/value. That file should be used by the CloudFormation template to create Parameter Store resources based on the entry made as a json file.</p>
  
  <p>Main template -</p>
  
  <pre><code>    {
  "AWSTemplateFormatVersion": "2010-09-09",
  "Parameters": {
      "SSMParameterStore": {
          "Description": "SSM Parameter Store",
          "Type": "String"
      }
  },
  "Resources": {
          "InputParameters": {
              "Type": "AWS::SSM::Parameter",
              "Properties": {
                  "Name": {"Ref": "ParameterKey"},
                  "Type": "String",
                  "Value": {"Ref": "ParameterValue"}
              }
          }
      }
  }
  </code></pre>
  
  <p>Input Template -</p>
  
  <pre><code>[{
  "ParameterKey": "KeyPairName",
  "ParameterValue": "MyKey"
  },
  {
  "ParameterKey": "InstanceType",
  "ParameterValue": "m1.micro"
  }
  ]
  </code></pre>
  
  <p>Command:</p>
  
  <pre><code>aws cloudformation create-stack --stack-name test --template-body file:///home/user/Documents/Work/training/test/templt.json --parameters file:///home/user/Documents/Work/training/test/test.json --region us-east-1
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>An error occurred (ValidationError) when calling the CreateStack operation: Parameters: [SSMParameterStore] must have values
  </code></pre>
  
  <p>Not sure what is missing here. </p>