Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Unable to deploy serverless project #135

Open
@surathm

Description

@surathm

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" ] }
}
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-responseWaiting on additional info and feedback from GitHub community. (no auto closure)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions