Skip to content

7. Basic Deployment Flow

Vladyslav Kulyk edited this page Feb 27, 2019 · 20 revisions

The standard resource deployment is performed according to the following flow:

  1. Create the sdct.conf file which describes the framework configuration.

  2. Setup the SDCT_CONF environment variable pointing to the sdct.conf file.

  3. If necessary, add the sdct.aliases file.

  4. Prepare resources meta descriptions in Syndicate operation files.

  5. Deployment with the following steps:

    a. Create the bundle bucket in S3 (in case it is the first deploy to the target AWS account):

    `syndicate create_deploy_target_bucket`
    

    b. Collect the artifacts of the application and all Syndicate operation files, and create a bundle:

    `syndicate build_bundle --bundle_name <bundle_name>`
    

    c. Deploy the bundle:

    ```
    syndicate deploy --bundle_name <bundle_name> - –deploy_name <deploy_name>
    ```
    
  6. In case the infrastructure is not needed any more, run:

    `syndicate clean --bundle_name <bundle_name> --deploy_name <deploy_name>`
    

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