Add AWS environments using CLI scripts

You can add your AWS environment using a script.

To run the script, you need to have AWS CLI version 2.0.33 or later installed on the computer where you plan to run the script. For more information see Set up AWS CLI to run scripts

Note The instructions for using the script are only valid for a Linux or macOS AWS CLI. The scripts don't work with Windows.
Tip If you want to run the script with limited permissions, see Permissions needed to run Sophos Cloud Optix scripts. If not, you must use an IAM Administrator role to run the script.
  1. Click Add Environments and select the AWS.
  2. Click AWS CLI (Linux and Mac only) or the relevant Go button.
  3. Select Use standard setup or Customize your setup and click Continue.

    If you are unsure, you can switch back and forth in the assistant to see the differences.

  4. Answer the questions as you go through the assistant. The assistant uses your answers to set variables in the script it creates.

    For more details of these variables, see AWS CLI script variables.

  5. The assistant creates your script and other CLI commands. Download these commands and run them in AWS CLI on your Mac or Linux computer.

After the script has finished running, you see the message All steps done!. If there are no errors, your environment shows in the Sophos Cloud Optix dashboard.

Note After adding your AWS account to Sophos Cloud Optix, you can add Amazon Elastic Kubernetes Service (EKS) clusters. You must add these clusters to Sophos Cloud Optix separately, using the Amazon CLI script provided by Sophos. See Add your Amazon EKS clusters.