-
Notifications
You must be signed in to change notification settings - Fork 11
7. Basic Deployment Flow
This page describes standard resources deployment flow.
The deployment flow consists of steps containing CLI commands.
Each step is linked to Usage Guide section that contains details of the respective step execution, with the related parameters and outputs.
Video instructions are provided for every step. They are based on the task01: Hello World Lambda Function
from the educational course: Deep Dive Into Serverless: AWS Sandbox Course.
The standard resource deployment is performed according to the following flow:
Step 1: Generate project:
syndicate generate project
Step 2: Generate config, so the file syndicate.yml
which describes the framework configuration will be created:
syndicate generate config
Step 3: Setup the SDCT_CONF environment variable pointing to the folder with syndicate.yml file:
Unix: export SDCT_CONF=$path_to_store_config
or Windows: setx SDCT_CONF $path_to_store_config
CONFIG GENERATION + SDCT_CONF SETUP DEMO
Step 4: If necessary, add your aliases to syndicate_aliases.yml
.
Step 5: Prepare resources meta descriptions resources meta descriptions:
syndicate generate meta
Step 6: Deploy with the following steps:
- Create the bundle bucket in S3 (in case it is the first deploy to the target AWS account):
syndicate create_deploy_target_bucket
- Collect the artifacts of the application, Syndicate and create a bundle:
syndicate build
syndicate deploy
Step 7: In case the infrastructure is not needed any more, destroy the resources by running:
syndicate clean
The command cleans the whole AWS infrastructure in the specified deploy, except the excluded resources, if any.