Giter Site home page Giter Site logo

doetlingerlukas / functiontemplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apollo-functions/functiontemplate

0.0 0.0 0.0 26 KB

License: MIT License

Shell 35.21% Python 15.19% HCL 37.77% JavaScript 4.21% Dockerfile 0.50% Go 1.88% Ruby 5.23%

functiontemplate's Introduction

Function Template

Overview

Repository for the template used to create serverless functions which can be deployed to cloud providers and converted to Docker images to be used by the Apollo orchestration platform.

Get the code

git clone https://github.com/Apollo-Workflows/Apollo-Template
cd Apollo-Template

Documentation

Autodeploy

  1. Save the credentials for your cloud provider in the according subfolder:
    • AWS: Go to the service IAM and create a new user with the access type Programmatic access and attach the AdministratorAccess policy, which is part of the existing policies. You can copy the Access key ID and Secret access key and put it into the following format and save it under aws/credentials:

      [default]
      aws_access_key_id = <Your access key ID>
      aws_secret_access_key = <Your secret access key>
      
    • IBM:

    • Create the ibmcloud_api_key here add it to ibm/terraform.tfvars

    • Add S3 credentials from AWS to ibm/s3Credentials.json

    • A: Deploy to all providers: Run from root dir docker run --rm -it --entrypoint=/app/deployAll.sh -v ${PWD}:/app/ chrisengelhardt/apollo-autodeploy
    • B: Deploy single provider with custom settings: Run docker run --rm -v ${PWD}:/app/ chrisengelhardt/apollo-autodeploy --help from within the directory of your chosen cloud provider

Note: For IBM you have to create a namespace first and place it into ibm.tf on all lines with namespace = "YOURNAMESPACE".

Usage: /app/deploy.sh [--help] [--region region] [--url] [--mapping]

Commands:
    --help                  Show this help output.
    --region region         Sets a specific region for the deployment. Use a region from:
                https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html
    --url                   Prints out all deployment urls
    --mappings              Creates typeMapping.json with the deployment urls

functiontemplate's People

Contributors

doetlingerlukas avatar gipfelen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.