icon-dspm.svg
Posture Control (DSPM)

Changing AWS CloudTrail Details

You can change the CloudTrail for an organization or a single account within the organization as required.

Prerequisites

You must be assigned either an Administrator role or any role with Edit Cloud Accounts permission.

Changing AWS CloudTrail for an Organization

The organization CloudTrail shares the CloudTrail events of the management and member accounts of the organization to the same CloudTrail S3 bucket. When you reset the organization AWS CloudTrail details, the existing CloudTrail is disabled and all the onboarded accounts move to the Needs Attention state until the new CloudTrail is validated successfully.

To change AWS CloudTrail for an organization:

  1. Go to Administration > Configuration > Cloud Accounts.
  2. Select the organization account for which you want to change the CloudTrail details.

  3. Click Manage, and then select Manage CloudTrail from the drop-down menu.

  4. In the Organization CloudTrail window:
    1. Click Reset to edit the existing CloudTrail details and add new details.

    2. CloudTrail Type: If it is an organization CloudTrail, select the OrgCloudTrail checkbox.
    3. CloudTrail Bucket Name: Enter the S3 bucket name that is associated with the CloudTrail.
    4. Prefix (Optional): Enter the prefix specified in the CloudTrail S3 bucket path, if any.

    5. Bucket Account ID: Enter the AWS account ID where the CloudTrail S3 bucket is present.
    6. Click Apply.

      A message appears indicating that the CloudTrail details is saved successfully.

    7. Under Download and Deploy Template, select one of the following template types:
    8. Click Done.
  5. In the Overview tab, under CloudTrail, click Validate.

    After the CloudTrail is validated successfully, the status of the CloudTrail shows Enabled.

    If there is any issue found while validating the template, the status of the CloudTrail shows Failed. Download the template and run it again, and then validate the CloudTrail.

Changing AWS CloudTrail for a Single Account

When you update the account CloudTrail, the existing CloudTrail is disabled only for that account without affecting the other accounts in the organization. The account moves to the Needs Attention state until the new CloudTrail is validated successfully.

To change AWS CloudTrail for a single account:

  1. Go to Administration > Configuration > Cloud Accounts.
  2. Select the AWS organization and then select the Accounts tab.

  3. Click the Actions icon for the account you want to change the CloudTrail details, then select Update CloudTrail.

  4. In the Update Account CloudTrail window:

    1. Click Reset to edit the existing CloudTrail details and add new details.

    2. CloudTrail Bucket Name: Enter the S3 bucket name that is associated with CloudTrail.
    3. Prefix (Optional): Enter the prefix specified in the CloudTrail S3 bucket path, if any.
    4. Bucket Account ID: Enter the AWS account ID where the CloudTrail S3 bucket is present.

    5. Click Apply.

      A message appears indicating that the CloudTrail details is saved successfully.

    6. Under Download and Deploy Template, select one of the following template types:
      • To update the CloudTrail details using the CloudFormation template:

        • In the Update Account CloudTrail window, click CloudTrail to download the template as a YAML file to your local system.

          Close
          1. Sign in to the AWS Management Console for the account you want to change the CloudTrail, and go to CloudFormation.
          2. In the left-side navigation, select Stacks.
          3. Click Create stack.

          4. On the Create stack page:
            1. Prepare template: Select Choose an existing template.
            2. Specify template: Select Upload a template file to upload the template you downloaded from the DSPM Admin Portal.
            3. Upload a template file: Click Choose file, browse and select template, then click Open.
          5. Click Next.
          6. On the Specify stack details page, under Stack name, enter a unique stack name.

          7. Click Next.
          8. On the Configure stack options page, click Next.
          9. On the Review and create page, under Capabilities, select the I acknowledge checkbox to acknowledge AWS CloudFormation's creation of IAM resources with custom names.

          10. Click Submit.
          Close
        Close
      • To update the CloudTrail details using the Terraform template:

        Close
    7. Click Done.

    DSPM validates the template deployment by checking the new CloudTrail details provided.

    If there is any error while validating the template, download and rerun the template.

    You can see the CloudTrail details of the account in the corresponding account drawer.

Related Articles
Understanding AWS CloudTrailChanging AWS CloudTrail Details