Skip to main content

aws_ec2_dhcp_options Resource

Use the aws_ec2_dhcp_options InSpec audit resource to test properties of multiple AWS DHCP options sets.

Installation

This resource is available in the Chef InSpec AWS resource pack.

See the Chef InSpec documentation on cloud platforms for information on configuring your AWS environment for InSpec and creating an InSpec profile that uses the InSpec AWS resource pack.

Syntax

Ensure that an aws_ec2_dhcp_options exists.

describe aws_ec2_dhcp_options do
  it { should exist }
end
describe aws_ec2_dhcp_options.where(dhcp_options_id: 'dopt-0123456789abcdefg') do
  it { should exist }
end

Properties

domain_names
The list of DHCP configurations domain names.
domain_name_servers
The list of domain name servers in the DHCP configuration.
ntp_servers
The list of ntp servers in the DHCP configuration.
netbios_name_servers
The list of NetBIOS name servers in the DHCP configuration.
netbios_node_types
The list of NetBIOS node types in the DHCP configuration.
tags
The tags of the DHCP options.

Examples

This resource does not have any examples.

AWS Permissions

Your Principal will need the EC2:Client:DescribeDhcpOptionsResult action with Effect set to Allow.

You can find detailed documentation at Actions, Resources, and Condition Keys for Amazon EC2.

Edit this page on GitHub

Thank you for your feedback!

×









Search Results