Unable to deploy serverless project #135
Description
My serverless.template file is as follows. while trying to launch I get error "Failed to deploy serverless project to AWS CloudFormation.
Failed to create CloudFormation change set: [/Description] 'null' values are not allowed in templates"
{
"Type": "AWS::Serverless::Function",
"Properties": {
"Handler": "lambda.LambdaFormFunctionHandler",
"Runtime": "Java",
"CodeUri": "s3://lambda-function-bucket-us-east-1-1551523177857/LambdaForm-0.1-SNAPSHOT-shaded.jar",
"Policies": [
"AmazonDynamoDBReadOnlyAccess",
"AmazonS3ReadOnlyAccess"
]
},
"Resources" : {
"myDynamoDBTable" : {
"Type" : "AWS::DynamoDB::Table",
"Properties" : {
"AttributeDefinitions": [ {
"AttributeName" : {"Ref" : "HashKeyElementName"},
"AttributeType" : {"Ref" : "HashKeyElementType"}
} ],
"KeySchema": [
{ "AttributeName": {"Ref" : "HashKeyElementName"}, "KeyType": "HASH" }
],
"ProvisionedThroughput" : {
"ReadCapacityUnits" : {"Ref" : "ReadCapacityUnits"},
"WriteCapacityUnits" : {"Ref" : "WriteCapacityUnits"}
}
}
}
},
"Outputs" : {
"InfrastructureIP" : {
"Description": "The private IP of Infrastructure",
"Value" : { "Fn::GetAtt" : [ "Infrastructure", "PrivateIp" ] }
}
}
}