aws-toolkit-eclipse icon indicating copy to clipboard operation
aws-toolkit-eclipse copied to clipboard

HttpApi use in Eclipse Serverless Project

Open maybhi opened this issue 3 years ago • 0 comments

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

maybhi avatar Aug 28 '20 05:08 maybhi