# Modify Amazon EC2 instance attributes

**URL:** <https://community.automationedge.com/t/modify-amazon-ec2-instance-attributes/10450>\
**Category:** Get Help & Discuss\
**Tags:** rpa, generic\
**Created:** [August 10, 2023, 11:20am UTC](https://community.automationedge.com/t/modify-amazon-ec2-instance-attributes/10450 "2023-08-10T11:20:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noah\_Walkar](https://avatars.discourse-cdn.com/v4/letter/n/ac91a4/32.png) [@Noah\_Walkar](https://community.automationedge.com/u/Noah_Walkar)\
**Post date:** [August 10, 2023, 11:20am UTC](https://community.automationedge.com/t/modify-amazon-ec2-instance-attributes/10450/1 "2023-08-10T11:20:43Z")

</div>

Hi!

AutomationEdge is a leader in IT process automation. I want to use the amazon EC2 plugins to monitor my EC2 account and perform actions for cost control.

How can I modify an EC2 instance’s attributes? I am particularly looking to resize the VM. What should be my approach to build a workflow for the same?

---

<div class="post-metadata">

**Author:** ![Jane](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@Jane](https://community.automationedge.com/u/Jane)\
**Post date:** [August 10, 2023, 11:28am UTC](https://community.automationedge.com/t/modify-amazon-ec2-instance-attributes/10450/3 "2023-08-10T11:28:52Z")

</div>

Hi!

You can use the Amazon EC2: [C] Amazon EC2: Modify Instance Attribute plugin step to modify instance attributes.

You can modify the attributes listed in the Input section in the image below by providing an Instance ID. I wish to resize the instance. I will resize the instance by changing the instance type. Hence, I have provided a value for the instance type below.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/f/f5209947712991a2e7555190fd1a9874fd3eb40f.png)

I achieved the solution in four steps using parent-child workflows as below -

- Provide the instance ID to modify its type.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/4/40fb54563151ccb0609ff6ee0810f85a84fac593.png)

- Get Instance Properties, use the Amazon EC2: Get Instance Properties By Instance ID plugin step to fetch Instance state

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/e/ec36b94dc5a2bad1b59ac503d8d64c003a6839b4.png)

- If instance is running use the Amazon EC2: Start Instance stop it.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/2/28c024e18112a8607257673d8053265667a3a28e.png)

- Modify the stopped instance type using Amazon EC2: Modify Instance Attribute. Use Amazon EC2: Start Instance plugin step to Start Instance

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/0/06801b780bf85a078142c97a81747389eab47f76.png)
