Procedures
Automation procedures in the AWS EC2 book.
to attach a rule to a security group
Concept
Description
Type
Required
Default Value
get '[{"cidr_ip": "186.137.54.107/32", "description": "SSH access from specific IP"}]' as a json
use the above as the ip ranges
create a json
use the above as the permission
set the permission's "ip_protocol" to "tcp"
set the permission's "from_port" to 22
set the permission's "to_port" to 22
set the permission's "ip_ranges" to the ip ranges
the permission
imagine the permissions
add the permission to the permissions
attach a rule to the security group
the rule type is "ingress"
the ip permissions are the permissions
attach a rule to the security group
the rule type is "egress"
the ip permissions are the permissionsto get (security groups) from ec2
Concept
Description
Type
to get some (security group's rules)
Concept
Description
Type
Required
Default Value
Concept
Description
Type
to revoke a security group rule
Concept
Description
Type
Required
Default Value
Last updated
Was this helpful?
