{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":30938,"path":"it-operations-management/itom-cloud-accelerate/cal-aws-turn-off-ec2-instance.md","title":"AWS Turn Off EC2 Instance action","bundle":null,"doc_type":null,"release":"australia","body":"\n# AWS Turn Off EC2 Instance action\n\nAction that stops the specified Amazon Web Services \\(AWS\\) Virtual Machine \\(VM\\).\n\n## Roles and availability\n\n-   **Subscription requirements**\n\n    To use this action in custom flows, you must obtain an Integration Hub Enterprise subscription or an App Engine subscription. For more information, see [Request Integration Hub](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/integrate-applications/request-ih-overview.md).\n\n-   **Role requirements**\n\n    This action requires roles granted by delegated development or assigned to the user. For more information, see [User access to Flow Designer](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/build-workflows/user-access-flow-designer.md).\n\n\n## Cloud permission\n\nTo execute this action, the caller must have the **ec2:StopInstances** cloud permission.\n\n## Inputs\n\nProvide a value for each input that your action needs. To add dynamic values, you can also select data pills using the pill picker.\n\n-   **Instances**\n\n    Data type: **String**\n\n    AWS instance ID. Enter the comma-separated list of AWS instance IDs.\n\n    Example: i-1234567890abcdef0, i-1234567761abcdek1\n\n-   **Credential Alias**\n\n    Data type: **Record**\n\n    Credential alias for the AWS credential.\n\n-   **Location**\n\n    Data type: **String**\n\n    Name of the datacenter.\n\n-   **Use MID**\n\n    Data type: **True/False**\n\n    Selection to indicate whether to use a MID Server to make the outbound calls.\n\n-   **MID Server**\n\n    Data type: **Record**\n\n    MID Server for making the outbound calls.\n\n-   **Gov Cloud**\n\n    Data type: **True/False** Not supported.\n\n\n## Outputs\n\nYou can use these outputs as inputs for other actions.\n\n-   **Is Access Denied**\n\n    Data type: **True/False**\n\n    Server authorization status of the call.\n\n    -   **True**: The server has authorized the call\n    -   **False**: The server didn't authorize the call\n-   **Error Message**\n\n    Data type: **String**\n\n    Error message returned for the failed call.\n\n-   **Result**\n\n    Data type: **True/False**\n\n    Status of the action.\n\n    -   **True**: Successful\n    -   **False**: Failed\n-   **Error code**\n\n    Data type: **String**\n\n    Client error code returned for the failed call.\n\n\n**Parent Topic:**[Cloud Action Library reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/itom-cloud-accelerate/cloud-action-library-reference.md)\n\n"}}