Sha256: 9e6ba2301bd2831acf798565d424c8b406ffe307294c8d2354d2278ccc38f261
Contents?: true
Size: 1.65 KB
Versions: 4
Compression:
Stored size: 1.65 KB
Contents
--- title: About the aws_vpcs Resource platform: aws --- # aws\_vpcs Use the `aws_vpcs` InSpec audit resource to test properties of some or all AWS Virtual Private Clouds (VPCs). A VPC is a networking construct that provides an isolated environment. A VPC is contained in a geographic region, but spans availability zones in that region. A VPC may have multiple subnets, internet gateways, and other networking resources. Computing resources--such as EC2 instances--reside on subnets within the VPC. Each VPC is uniquely identified by its VPC ID. In addition, each VPC has a non-unique CIDR IP Address range (such as 10.0.0.0/16) which it manages. Every AWS account has at least one VPC, the "default" VPC, in every region. <br> ## Syntax An `aws_vpcs` resource block uses an optional filter to select a group of VPCs and then tests that group. # The control will pass if the filter returns at least one result. Use `should_not` if you expect zero matches. describe aws_vpcs do it { should exist } end <br> ## Examples The following examples show how to use this InSpec audit resource. As this is the initial release of `aws_vpcs`, its limited functionality precludes examples. <br> ## Matchers This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit our [matchers page](https://www.inspec.io/docs/reference/matchers/). ### exists The control will pass if the filter returns at least one result. Use `should_not` if you expect zero matches. # You will always have at least one VPC describe aws_vpcs it { should exist } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inspec-2.1.21 | docs/resources/aws_vpcs.md.erb |
inspec-2.1.10 | docs/resources/aws_vpcs.md.erb |
inspec-2.0.32 | docs/resources/aws_vpcs.md.erb |
inspec-2.0.17 | docs/resources/aws_vpcs.md.erb |