Skip to content

Use Terraform

You can add your AWS environments to Sophos Cloud Optix using our Terraform template.

You must use Terraform 1.0 or later.

To add an AWS environment, do as follows:

  1. Sign in to your Sophos Cloud Optix.
  2. Click Add Environments then click AWS.
  3. Click Choose a full setup option.
  4. Click Terraform or the relevant Go button.

    The Add your AWS environment assistant appears.

  5. Select an installation method from the following:

    • Select Use standard setup and click Continue.
    • Select Customize your setup and click Continue.

    Note

    If you select Customize your setup, you'll be asked questions about your CloudTrail and VPC flow log files.

    Your Terraform script appears.

  6. Follow the instructions to download and run the Sophos Cloud Optix template.

  7. Copy the AWS account ID and IAM role from the output of the Terraform template. You'll need this later. Click Continue. Generate the command to add your AWS account appears.

    You'll need this later.

  8. Click Continue.

    Generate the command to add your AWS account appears.

  9. Answer the questions using the AWS account ID and IAM role you copied earlier.

  10. Click Generate the command.

    A customized curl command appears.

  11. Copy the curl command and run it. This adds your AWS account to Sophos Cloud Optix.

The AWS account is added and appears in Environments.