# EC2

## Overview

Fylamynt EC2 actions allow you to perform targeted operations against EC2 resources.

## Integration Actions

You can add these actions in Fylamynt workflow builder, as part of your workflow.

1. [EC2 Get Sizing Recommendations](#ec2-get-sizing-recommendations)
2. [EC2 Resize Instances](#ec2-resize-instances)

### EC2 Get Sizing Recommendations

Integration node to fetch EC2 sizing recommendations from AWS Trusted Advisor

#### **Input**

| **Parameter Name**   | **Description**                                                 | **Required** |
| -------------------- | --------------------------------------------------------------- | ------------ |
| Target Account Alias | Target account alias to be used to fetch sizing recommendations | True         |
| Region Name          | AWS Region Name for filtering Trusted Advisor checks            | False        |

#### **Output**

| **Parameter Name** | **Type** | **Description**                     |
| ------------------ | -------- | ----------------------------------- |
| recommendations    | MapList  | A list of sizing recommendations    |
| execution\_status  | String   | Status of run (ie: S\_OK / E\_FAIL) |

#### Action Example

![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXYvxfYq9m2JdKqaCdk%2F-MkyCUe1empnjMW2nwrw%2F-MkyXA1a1CON3s93Pd7E%2Fimage-20210924-022119.png?alt=media\&token=64ff0ed3-0cbf-4222-8318-36b9a6d9395a)

![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXYvxfYq9m2JdKqaCdk%2F-MkyCUe1empnjMW2nwrw%2F-MkyXNfWi_5qeueKTmWe%2Fimage-20210924-023320.png?alt=media\&token=48ee1840-2fac-417b-99e2-2985ec5887df)

### EC2 Resize Instances

Integration node to modify instance type of EC2 instances

#### **Input**

| **Parameter Name**   | **Description**                                                                                                                                     | **Required** |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| Target Account Alias | Target account alias to be used to resize instances                                                                                                 | True         |
| Update Config        | <p>A maplist of update config. Example update config in the list:</p><p>{'recommended\_instance\_type': 't3.nano', instance\_id': 'i-abcd1234'}</p> | True         |
| DryRun               | Indicate whether this is a dry run                                                                                                                  | False        |

#### **Output**

| **Parameter Name** | **Type** | **Description**                     |
| ------------------ | -------- | ----------------------------------- |
| instances          | MapList  | A list of updated EC2 instances     |
| execution\_status  | String   | Status of run (ie: S\_OK / E\_FAIL) |

#### Action Example

![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXYvxfYq9m2JdKqaCdk%2F-MkyCUe1empnjMW2nwrw%2F-MkyXcSbkhIIL3bQYHzU%2Fimage-20210924-023117.png?alt=media\&token=c40a8862-0bcd-4cae-84d7-2ce36f25a910)

![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXYvxfYq9m2JdKqaCdk%2F-MkyCUe1empnjMW2nwrw%2F-MkyXmmxxb_iL-AcT2wG%2Fimage-20210924-023540.png?alt=media\&token=69648938-d988-4ffa-be98-9594aa9a80bb)
