Additional Information

Updating the Auto Scaling Group

Notes:

Updating the Amazon Machine Image (AMI)

  • For Launch Template:

    1. Find the target AMI ID:

      1. Open AWS Marketplace and search for:

        1. R81.20 and higher:

          CloudGuard Network Security with Threat Prevention.

        2. R80.40:

          CloudGuard Network Security for Gateway Load Balancer.

      2. Select the listing matching the one used to deploy the autoscaling group.

      3. Click Continue to subscribe.

      4. Click Continue to configuration.

      5. Select the target version and build (For example: R81.20-631.1427).

      6. Select the region of your autoscaling group.

      7. Copy the AMI ID.

    2. Update the autoscaling group launch template:

      1. Open the Amazon EC2 console.

      2. From the main menu bar, select Launch Templates. Then select the launch template of the Auto Scaling Group.

      3. Click Actions > Modify template (Create new version).

      4. In Auto Scaling Guidance, check Provide guidance to help me set up a template that I can use with EC2 Auto Scaling.

      5. Go to Application and OS Images (Amazon machine image) and click Browse more AMIs.

        1. In the search box, enter the AMI-ID (“ami-xxxxxxxxxxxxxxxxx”) copied in step 1.

        2. Click the Community AMIs tab.

        3. Click the Select button next to the AMI matching the AMI-ID you pasted in the search bar.

        4. If you get the alert: Some of your current settings will be changed or removed if you proceed, review the changes and Confirm if you agree.

      6. In Network settings section, mark Select existing security group.

      7. Update from R80.40 to a higher version must include updating user data:

        1. Go to user data in Advanced details.

        2. Paste the syntax below and replace parameters values with the applicable ones. You can copy the parameters values from previous user data.

          Note - The templates below are just examples. For the latest available templates for your solution, see sk125252.

      8. Examine your configuration in all other sections and create the launch template version.

    3. From the Navigation Toolbar, select Auto Scaling Groups.

    4. Select the applicable Auto Scaling Group, click Edit.

    5. In the Launch Template section, select the new version and select Update.

    6. To apply this update, manually stop the Security Gateways one by one. The Auto Scaling Group deploys new Security Gateways with the updated AMI and not with the terminated Security Gateways.

  • For Launch Configuration:

    1. Open the Amazon EC2 console.

    2. From the main menu bar, select Launch Configurations. Then select the launch configuration of the Auto Scaling Group.

    3. Click Actions > Copy launch configuration.

    4. Go to Amazon machine image (AMI) and select the new AMI.

      Follow these steps to find the desired AMI ID:

      1. Open the AWS Marketplace.

      2. Search for

        • R81.20 and higher:

          CloudGuard Network Security with Threat Prevention.

        • R80.40:

          CloudGuard Network Security for Gateway Load Balancer.

      3. Click on the relevant product listing.

      4. Click Continue to Subscribe.

      5. Click Continue to Configuration.

      6. Select the relevant Software Version and Region.

      7. Copy the Ami Id.

    5. Update from R80.40 to a higher version must include updating user data:

      Go to Additional configuration - optional, open Advanced details, in user data paste the syntax below and replace parameters values with the applicable ones. You can copy the parameters values from previous user data.

    6. Verify your configuration in all other sections and create the launch configuration.

    7. From the Navigation Toolbar, select Auto Scaling Groups.

    8. Select the applicable Auto Scaling Group and click Edit.

    9. In the Launch Configuration section, select the newly created launch configuration, named the same as the previous configuration with Copy concatenated to it, and select Update.

    10. To apply this update, manually stop the Security Gateways one by one. The Auto Scaling group deploys new Security Gateways with the updated AMI and not with the terminated Security Gateways.

Notes:

  • Do not make any other configuration changes during the upgrade.

  • To prevent downtime, stop a Security Gateway only after the previous Security Gateway completes its initialization and replaces its predecessor.

  • These updates require additional actions:

    If you changed the Security Gateway version, update the applicable Cloud Management Extension (CME) configuration template. Use this command:

    autoprov_cfg set template -tn <CONFIGURATION-TEMPLATE-NAME> -ver <NEW-VERSION>

    Replace <CONFIGURATION-TEMPLATE-NAME> with the name of the applicable CME configuration template (for example 'my-configuration-template'), and <NEW-VERSION> - with the new version of the Security Gateway.

Replace the Launch Configuration with a Launch Template

  1. Copy a launch configuration to a launch template:

    1. Open the Amazon EC2 console.

    2. In the navigation pane under Auto Scaling, select Launch Configurations.

    3. Select the launch configuration to copy and select Copy to launch template > Copy selected. It creates a new launch template with the same name and options as the selected launch configuration.

    4. For New launch template name, use the name of the launch configuration (the default) or enter a new name. The launch template names must be unique.

    5. Select Copy.

  2. Replace the launch configuration for an Auto Scaling group:

    1. Open the Amazon EC2 console.

    2. In the navigation pane, select Auto Scaling Groups.

    3. Select the check box next to your Auto Scaling group.

      A pane opens at the bottom of the page with information about the selected group.

    4. On the Details tab, select Launch configuration, Edit.

    5. Select Switch to launch template.

    6. For Launch template, select your launch template.

    7. For Version, select the launch template version as necessary. After you create versions of a launch template, you can specify if the Auto Scaling group uses the default or the latest version of the launch template when scaling out.

    8. When complete, select Update.