acls: EC2 Network ACLs

Description Usage Arguments Details Value References See Also Examples

Description

Create/Delete Network ACL for VPC

Usage

1
2
3

Arguments

vpc

A character string specifying a VPC Allocation ID or an object of class “ec2_ip”.

...

Additional arguments passed to [ec2HTTP()].

acl

...

Details

Access Control Lists (ACLs) for a Virtual Private Cloud (VPC) provide a layer of security for an EC2 instance or set of instances. These can be used in tandem with or in lieu of Security Groups (see describe_sgroups()).

Value

For create_netacl, a list of class “ec2_acl”. For delete_netacl, a logical indicating whether the operation succeeded.

References

http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Security.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkAcl.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteNetworkAcl.html

See Also

describe_netacls()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
# create a VPC
v <- create_vpc(cidr = "10.0.0.0/16")
describe_vpcs()

# create a Network ACL for the VPC
acl <- create_netacl(v)

# cleanup
delete_acl(acl)
delete_vpc(v)

## End(Not run)

cloudyr/aws.ec2 documentation built on Jan. 14, 2020, 4:55 a.m.