aws / aws-toolkit-eclipse

(End of life: May 31, 2023) AWS Toolkit for Eclipse
http://aws.amazon.com/eclipse
Apache License 2.0
275 stars 179 forks source link

HttpApi use in Eclipse Serverless Project #209

Open maybhi opened 3 years ago

maybhi commented 3 years ago

When i deploy the project in AWS using Eclipse AWS toolkit, It gives an error like "Invalid template: Cannot create enum from AWS::Serverless::HttpApi value!" So why can't we use HttpApi in Eclipse Serverless Project?

Template { "AWSTemplateFormatVersion" : "2010-09-09", "Transform" : "AWS::Serverless-2016-10-31", "Resources" : { "RestApi" : { "Type" : "AWS::Serverless::HttpApi", "Properties" : { "Name" : { "Fn::Sub" : "todo-app-api-${StageName}" }, "StageName" : { "Ref" : "StageName" } } }, "ListTasksFunction" : { "Type" : "AWS::Serverless::Function", "Properties" : { "FunctionName" : { "Fn::Sub" : "todo-app-list-tasks-${StageName}" }, "CodeUri" : "target/todo-app-1.0-SNAPSHOT.jar", "Handler" : "com.serverless.testlambda.function.HelloWorld::handleRequest", "Events" : { "List" : { "Type" : "HttpApi", "Properties" : { "Path" : "/hello", "Method" : "GET", "RestApiId" : { "Ref" : "RestApi" } } } } } } } }