AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::VPCDHCPOptionsAssociation

EC2 VPCDHCPOptionsAssociation

Associates a set of DHCP options with a VPC, or associates no DHCP options with the VPC.

Properties

2 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
DhcpOptionsId
string
RequiredCreate-only
VpcId
string
RequiredCreate-only

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::VPCDHCPOptionsAssociation

Resources:
  MyResource:
    Type: AWS::EC2::VPCDHCPOptionsAssociation
    Properties:
      VpcId: "my-vpcid"
      DhcpOptionsId: "my-dhcpoptionsid"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:AssociateDhcpOptions

update

ec2:AssociateDhcpOptions

delete

ec2:AssociateDhcpOptions

read

ec2:DescribeVpcs

list

ec2:DescribeVpcs

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties2
Required2
TaggingNot supported
Primary IDDhcpOptionsId

Supported Operations

CreateUpdateDeleteReadList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DhcpOptionsIdVpcId

External Links