Hello World!

This is the first post!

Let’s try to create a Hello World Apination connector

Connector Description

  1. AWS > Services > Lambda > “Create a Lambda Function”

    • Name: cn_helloworld_get_connector_description
    • Runtime: Node.js 4.3
    • Code entry type: Edit code inline

      exports.handler = function(event, context) {
          context.succeed({
              data: 's3://apination-cn-data/staging/cn-helloworld/connector_description.json'
          });
      };
      
    • Handler: index.handler
    • Role: apination_connector_lambda
  2. “Next”
  3. “Create function”
  4. “Test”

Get Greeting (Hello World!)

  1. AWS > Services > Lambda > Create a Lambda Function
    • Name: cn_helloworld_get_greeting
    • Runtime: Node.js 4.3
    • Code entry type: Edit code inline

      exports.handler = function(event, context) {
          context.succeed({
              data: [
                  { 
                      message: 'Hello world!'
                  }
              ],
              stats: {
                  objectName: 'greeting',
                  objectNames: 'greetings',
                  retrieved: 1,
                  created: 0, 
                  updated: 0, 
                  deleted: 0
              }
          });
      };
      
    • Handler: index.handler
    • Role: apination_connector_lambda
  2. “Next”
  3. “Create function”
  4. “Test”
  5. We’ve got our first Apination connector set up. Let’s go get some beer and pizza