> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Updating an AWS account

> Update an onboarded AWS account to apply new permissions, enable CWPP, or refresh integration resources.

Updating an AWS account keeps Plerion’s permissions up to date, ensuring the platform can continue scanning your cloud environments and reporting accurate findings.

You should update an account if:

* **Template update required**: The Plerion CloudFormation template has been updated with new permissions. This is flagged by the **PLERION-PLN-02** detection. If this finding fails, update the account.

  ![PLN-2 detection in Plerion Findings dashboard](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/plerion-detection-pln-2.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=8f291783526b1299ac14019549905375)

* **Enable or disable CWPP**: Add or remove the Cloud Workload Protection Platform (CWPP) capability for an existing account.

***

## Steps to update a single AWS account

### Automated mode (recommended)

If you onboarded your AWS account using the **Automated mode**, you can update the CloudFormation stack in one of three ways:

* **Update existing stack using the AWS Console**
* **Update existing stack using the CLI**
* **Create a new stack**

#### Update existing stack using the AWS Console

**1. Open the AWS account you want to update**

* On the Plerion dashboard, go to `Settings` > `Integrations`, and find the AWS account you want to update
* Click the edit icon next to **Role ARN**

![Integrated AWS account with Role ARN highlighted](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/aws-integration-edit-role-arn.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=93681a6d5e3289df29040ad26adad40e)

**2. On the Update Existing Stack (Console) tab, click Launch stack**

![Updating the existing stack using the AWS console](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/edit-aws-integration-update-existing-stack-console.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=363786d0f1a00cf4ce1cbc4b86c9274d)

**3. On the Specify stack details page in AWS, open Configure stack options**

**4. Copy the stack parameters from Plerion to AWS**

Copy each value from Plerion’s **Stack Parameters** box into the matching field in AWS. The box only lists the parameters your integration uses, so leave any other field at its default.

![Stack Parameters box in Plerion](https://mintcdn.com/pleriondocs/pw1vq1FqgMdfFHkI/images/integrations/aws/stack-parameters-box.png?fit=max\&auto=format\&n=pw1vq1FqgMdfFHkI\&q=85\&s=ee7b33a21f1f29be9511f6a9fd9321dc)

![Specify stack details page in AWS with the stack parameters filled in](https://mintcdn.com/pleriondocs/pw1vq1FqgMdfFHkI/images/integrations/aws/single-automated-specify-stack-details.png?fit=max\&auto=format\&n=pw1vq1FqgMdfFHkI\&q=85\&s=39c368f96c42c0d7ce9651fac2525c74)

**5. Select the CWPP capability (optional)**

To enable workload protection, select **CWPP** before continuing.

> [!TIP]
>
> Select **CWPP** if you want to scan workloads such as EC2, Lambda, or ECS.

![CWPP capability checkbox selected](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/add-cwpp-capability.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=e51c38b3338003a1a99a68aea914f925)

**6. Review and confirm capabilities**

On the **Review** page, tick the required **Capabilities** box.

![CloudFormation Review page with required Capabilities box ticked](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/cloudformation-allow-required-capabilities.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=fc64f82a8334057d4f071c1e19408dab)

**7. Submit the stack update**

* In AWS, click `Update stack` to apply the changes.
* Plerion will automatically detect the updated resources and refresh the integration when the update completes.

***

#### Update existing stack using the CLI

**1. Open the AWS account you want to update**

* On the Plerion dashboard, go to `Settings` > `Integrations`, and find the AWS account you want to update
* Click the edit icon next to **Role ARN**

![Integrated AWS account with Role ARN highlighted](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/aws-integration-edit-role-arn.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=93681a6d5e3289df29040ad26adad40e)

**2. On the Update Existing Stack (CLI) tab, copy the CLI command**

![Updating the existing stack using the CLI command](https://mintcdn.com/pleriondocs/NwS1OCYEzvddMvIM/images/integrations/aws/edit-aws-integration-update-existing-stack-cli.png?fit=max\&auto=format\&n=NwS1OCYEzvddMvIM\&q=85\&s=b4b174d849d26b48fcef7263b836b079)

**3. Insert stack parameters**

Copy all values from Plerion’s **Stack Parameters** box into the CLI command.

![Stack Parameters box with values for CLI update](https://mintcdn.com/pleriondocs/pw1vq1FqgMdfFHkI/images/integrations/aws/stack-parameters-box.png?fit=max\&auto=format\&n=pw1vq1FqgMdfFHkI\&q=85\&s=ee7b33a21f1f29be9511f6a9fd9321dc)

**4. Run the CLI command**

* Execute the command in your terminal.
* Plerion will automatically detect the updated resources once the update completes.

***

#### Create a new stack

**1. Open the AWS account you want to update**

* On the Plerion dashboard, go to `Settings` > `Integrations`, and find the AWS account you want to update
* Click the edit icon next to **Role ARN**

![Integrated AWS account with Role ARN highlighted](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/aws-integration-edit-role-arn.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=93681a6d5e3289df29040ad26adad40e)

**2. On the Create a New Stack tab, click `Launch stack`**

![Launching a new stack in AWS](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/edit-aws-integration-create-new-stack.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=2314535832ac8835aa1e224efb8423b6)

**3. Deploy the stack in AWS**

Follow the on-screen instructions in AWS to create the new stack.

**4. Verify the update in Plerion**

After deployment, Plerion will detect the new resources and refresh the integration.

***

### Manual mode

If you onboarded your AWS account using **Manual mode**, update the IAM role directly.

**1. Edit the IAM role in AWS**

In your AWS account, open the IAM role used by Plerion and edit its configuration.

**2. Apply the updated policy**

Replace the trust policy or permissions JSON with the updated values shown in Plerion.

**3. Validate the integration in Plerion**

Save your changes in AWS, then return to Plerion and click `Update` to validate the integration.

***

## Steps for updating multiple AWS accounts

> [!WARNING]
>
> You can only update multiple accounts from the **management account** integration.

**1. Open the AWS management account you want to update**

* On the Plerion dashboard, go to `Settings` > `Integrations`, and find the AWS management account you want to update
* Click the edit icon next to **Role ARN**

**2. Select Multi Account Onboarding**

* On the **Edit integration** page, click `Update using Multi Account Onboarding`.
* On the **Select capabilities** screen, click `Next`.

![Update using Multi Account Onboarding option](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/update-using-multi-account-onboarding.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=6633aee62206e6e702a72c18ccbee692)

**3. Click the Update Existing StackSet tab**

![Update Existing StackSet tab selected in AWS console](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/update-existing-stack-set-tab.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=ed50444e674bcab39f621660f9943fa4)

**4. Copy the stack parameters to AWS**

Copy each value from Plerion’s **Stack Parameters** box into the matching field in AWS. The box only lists the parameters your integration uses, so leave any other field at its default.

![Stack Parameters box in Plerion](https://mintcdn.com/pleriondocs/pw1vq1FqgMdfFHkI/images/integrations/aws/stack-parameters-box.png?fit=max\&auto=format\&n=pw1vq1FqgMdfFHkI\&q=85\&s=ee7b33a21f1f29be9511f6a9fd9321dc)

![Specify stack details page with the stack parameters filled in](https://mintcdn.com/pleriondocs/pw1vq1FqgMdfFHkI/images/integrations/aws/single-automated-specify-stack-details.png?fit=max\&auto=format\&n=pw1vq1FqgMdfFHkI\&q=85\&s=39c368f96c42c0d7ce9651fac2525c74)

**5. Set deployment options**

On the **Set deployment options** page in AWS, set **Automatic deployment** to `Deactivated`.

![Automatic deployment option set to Deactivated](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/deactivate-automatic-deployment.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=624cf935179a867e182abd3b1da705c6)

**6. Review and submit the update**

* On the **Review** page in CloudFormation, tick the required **Capabilities** box, then click `Submit`.
* Plerion will automatically detect the updated StackSet resources once the update completes.

![CloudFormation Review page with required Capabilities box ticked](https://mintcdn.com/pleriondocs/xqwXbDdIvpJS066S/images/integrations/aws/cloudformation-allow-required-capabilities.png?fit=max\&auto=format\&n=xqwXbDdIvpJS066S\&q=85\&s=fc64f82a8334057d4f071c1e19408dab)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.