vpcs: create_vpc

Description Usage Arguments Value References See Also Examples

Description

Create/delete VPCs

Usage

1
2
3
create_vpc(cidr, tenancy = c("default", "dedicated"), ...)

delete_vpc(vpc, ...)

Arguments

cidr

A character string specifying a network range for the subnet in CIDR notation.

tenancy

A character string specifying either “default” or “dedicated” (single-tenant) hardware for instances launched within the VPC.

...

Additional arguments passed to [ec2HTTP()].

vpc

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

Value

For create_vpc, a list of class “ec2_vpc”. For delete_vpc, a logical indicating whether the operation succeeded.

References

https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateVpc.html http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DeleteVpc.html

See Also

describe_vpcs(), get_vpc_attr()

Examples

1
2
3
4
5
6
7
8
## Not run: 
v <- create_vpc(cidr = "10.0.0.0/16")
describe_vpcs()

# delete VPC
delete_vpc(v)

## End(Not run)

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