AWS EC2
Procedures and concepts for the AWS EC2 integration.
Overview
Amazon EC2 (Elastic Compute Cloud) provides resizable compute capacity in the cloud for running applications. This integration enables automated instance management, server provisioning, and cloud infrastructure automation workflows. Scale computing resources dynamically and optimize cloud infrastructure operations.
Prerequisites
1. Required Books
The following Book(s) need to be added to your agent so it can learn and understand the automation procedures defined within them:
AWS EC2
How to Add the Book(s)
Go to Books → All Books.
Search for the name of the book and click on it.
Click on Install or Add Connection to add the book to your agent.
If adding a connection, you'll be prompted for connectivity details.
Connectivity
This section outlines the available methods for connecting to the Book, along with the required configuration details for each.
Connect using AWS Access key ID, AWS Secret Access Key, AWS Region, AWS Role ARN and AWS External ID
Assumes a role using the provided AWS credentials.
AWS Access key ID
The AWS Access Key ID for the initial authentication.
text
AWS Secret Access Key
The AWS Secret Access Key for the initial authentication.
sensitive
AWS Region
The AWS Region for the initial authentication.
text
AWS Role ARN
The ARN of the role to assume.
text
AWS External ID
An optional external ID that might be required by the role's trust policy.
sensitive
Connect using AWS Access key ID, AWS Secret Access Key and AWS Region
Connects to an API using the provided API key.
AWS Access key ID
The AWS Access Key ID
text
AWS Secret Access Key
The AWS Secret Access Key
sensitive
AWS Region
The AWS Region
text
Procedures
to attach a rule to a security group
Create an ingress or egress rule in a security group.
Input Concepts
rule type
The type of rule to add (ingress or egress)
conceptual or text
Yes
(no default)
A list of IpPermission objects representing the permissions to authorize
ec2 ip permission
Yes
(no default)
Examples
to get (security groups) from ec2
Get security groups from EC2.
Output Concepts
security groups
A list of security groups.
json
Examples
Get all security groups from EC2
Get security groups filtered by name
to get some (security group's rules)
Get security group rules for a security group in EC2.
Input Concepts
Output Concepts
Examples
Get security group rules from a specific security group
to revoke a security group rule
Delete a security group rule from a security group.
Input Concepts
Examples
Revoke all existing security group rules from a security group
Concepts
Ec2 security group
Represents an EC2 security group.
id
The ID of the security group.
text
name
The name of the security group.
text
description
The description of the security group.
text
vpc_id
The ID of the VPC to which the security group belongs.
text
Aws tag
Represents an AWS tag.
key
The key of the tag.
text
value
The value of the tag.
text
Ec2 ip permission
Represents an IP permission for an EC2 security group.
ip_protocol
The IP protocol for the permission.
text
from_port
The start port for the permission.
number
to_port
The end port for the permission.
number
Ec2 security group rule
Represents an EC2 security group rule.
rule_id
The ID of the security group rule.
text
group_id
The ID of the security group.
text
group_owner_id
The AWS account ID of the security group owner.
text
is_egress
Whether the rule is an egress rule (True) or ingress rule (False).
boolean
ip_protocol
The IP protocol for the rule.
text
from_port
The start port (or ICMP type) for the rule.
number
to_port
The end port (or ICMP code) for the rule.
number
rule_arn
The ARN of the security group rule.
text
cidr_ipv4
The IPv4 CIDR range for the rule, if applicable.
optional[text]
Concept attribute specifications
ip_ranges (ec2 ip permission)
description
optional[text]
cidr_ip
optional[text]
ipv6_ranges (ec2 ip permission)
description
optional[text]
cidr_ipv6
optional[text]
prefix_list_ids (ec2 ip permission)
description
optional[text]
prefix_list_id
optional[text]
Last updated
Was this helpful?

