aws_ec2
Manage AWS EC2 instances through Ansible operations, including listing, creating, starting, stopping, and terminating instances in a specified region.
Instructions
Manage AWS EC2 instances (list, create, start, stop, terminate)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | ||
count | No | ||
filters | No | ||
imageId | No | ||
instanceIds | No | ||
instanceType | No | ||
keyName | No | ||
region | Yes | ||
securityGroups | No | ||
tags | No | ||
terminationProtection | No | ||
userData | No | ||
waitForCompletion | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"action": {
"enum": [
"list",
"create",
"terminate",
"start",
"stop"
],
"type": "string"
},
"count": {
"type": "number"
},
"filters": {
"additionalProperties": {},
"type": "object"
},
"imageId": {
"type": "string"
},
"instanceIds": {
"items": {
"type": "string"
},
"type": "array"
},
"instanceType": {
"type": "string"
},
"keyName": {
"type": "string"
},
"region": {
"minLength": 1,
"type": "string"
},
"securityGroups": {
"items": {
"type": "string"
},
"type": "array"
},
"tags": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"terminationProtection": {
"type": "boolean"
},
"userData": {
"type": "string"
},
"waitForCompletion": {
"default": true,
"type": "boolean"
}
},
"required": [
"action",
"region"
],
"type": "object"
}