This repository contains a template workflow for the Apollo Engine
git clone https://github.com/Apollo-Workflows/Apollo-Template
cd Apollo-Template
- Add your own function
- Python layers:
- Add a function to auto deployment:
- 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 theAdministratorAccess
policy, which is part of the existing policies. You can copy theAccess key ID
andSecret access key
and put it into the following format and save it underaws/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 toibm/terraform.tfvars
- Add S3 credentials from AWS to
ibm/s3Credentials.json
- Create the
- AWS: Go to the service IAM and create a new user with the access type
-
- 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
- A: Deploy to all providers:
Run from root dir
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