Description Usage Arguments Value See Also Examples
Authorize/Revoke Security Group Egress/Ingress
1 2 3 4 5 6 7 8 9 10 11 12 13 | authorize_ingress(sgroup, cidr = paste0(my_ip(), "/32"), port = NULL,
protocol = "-1", ...)
revoke_ingress(sgroup, cidr = paste0(my_ip(), "/32"), port = NULL,
protocol = "-1", ...)
authorize_egress(sgroup, cidr = paste0(my_ip(), "/32"), port = NULL,
protocol = "-1", ...)
revoke_egress(sgroup, cidr = paste0(my_ip(), "/32"), port = NULL,
protocol = "-1", ...)
my_ip()
|
sgroup |
A character vector specifying one or more Security Group IDs, or (a list of) objects of class “ec2_security_group”. |
cidr |
A one- or two-element character vector specifying an IP or range of IP addresses. The default is your current machine's public IP as returned by http://checkip.amazonaws.com/. |
port |
A one- or two-element integer vector, specifying a port or port range. |
protocol |
A character string specifying a protocol. A value of “-1” (the default) means all protocols. |
... |
Additional arguments passed to [ec2HTTP()]. |
A list
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
s <- describe_subnets()
g <- create_sgroup("test_group", "new security group", vpc = s[[1]])
authorize_ingress(g, port = 80, protocol = "tcp")
authorize_egress(g, port = 80, protocol = "tcp")
# cleanup
revoke_ingress(g, port = 80, protocol = "tcp")
revoke_egress(g, port = 80, protocol = "tcp")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.