satr / intellij-idea-plugin-connector-for-aws-lambda

The plugin for the IntelliJ IDEA: connector for AWS Lambda functions.
MIT License
14 stars 4 forks source link

Directions #1

Closed DALDEI closed 6 years ago

DALDEI commented 6 years ago

I found your plugin, it looks great. But I cannot figure out how to use. aws cli is installed and configured (use it hours a day for years). I have a project that builds lambda functions, I have the plugin installed and the tools are showing but no list of functions. The docs say to "Configure the project for lambda" -- ok -- how ? whats the magic trick to tell the plugin to look at my project ?

satr commented 6 years ago

Hi The plugin for now use predefined region Regions.US_EAST_1 - please try to create a function in this region and see if it gets available in the function list. I planned to add a region selector.

satr commented 6 years ago

Hi I added a list of regions to the plugin v1.1 (maybe couple day on moderation stage). The issue can be also caused by a corporate proxy - it is not supported at this moment.

satr commented 6 years ago

As JAR is needed: "Configure JAR-artifact for the project". There is no need to "Configure the project for lambda", only following general SDK requirements. Example of the function class:

public class YourFuncClass implements RequestHandler<Object, Object> {
    @Override
    public Object handleRequest(Object input, Context context) {
        return input.toString();
    }
}

And I added libraries: aws-lambda-java-core aws-java-sdk-lambda aws-java-sdk-core

satr commented 6 years ago

The plugin has been improved recently - more features and diagnostics added. Please try latest version - maybe it would help with unclear behaviour you found. Latest version is v1.3 Thank you.