aws_ec2_dhcp_options resource
Use the aws_ec2_dhcp_options
InSpec audit resource to test properties of multiple AWS DHCP options sets.
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.
- The tags of the DHCP options.
Examples
This resource does not have any examples.
AWS Permissions
Your AWS 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.