Skip to content

7. Basic Deployment Flow

veronika2312 edited this page Jun 4, 2024 · 20 revisions

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

PROJECT GENERATION DEMO

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

LAMBDA GENERATION DEMO

Step 6: Deploy with the following steps:

syndicate create_deploy_target_bucket

syndicate build

BUNDLE CREATION DEMO

syndicate deploy

RESOURCES DEPLOYMENT DEMO

Step 7: In case the infrastructure is not needed any more, destroy the resources by running:

syndicate clean

RESOURCES DESTRUCTION DEMO

The command cleans the whole AWS infrastructure in the specified deploy, except the excluded resources, if any.