Hello,
DHCP Options set is a VPC construct, it can not be associated with a subnet. Please see below note from the documentation; although you can create multiple custom DHCP options set, each VPC can have MAX 1 DHCP options set associated with it.
Reference: https://docs.aws.amazon.com/vpc/latest/userguide/DHCPOptionSetConcepts.html
A custom DHCP option set enables you to customize your VPC with your own DNS server, domain name, and more. You can create as many additional DHCP option sets as you want. However, you can only associate a VPC with one set of DHCP options at a time
Appreciate the quick response, @Tushar_j! So I guess the only way to work around to using DHCP in multiple subnets in the same VPC is to put the subnets in different VPCs then. Thank you.
Relevant questions
Routing network traffic between two EC2 instances in the same subnet to a firewall appliance in another VPC
Accepted Answerasked 6 months agoDoes Image Builder support build and test an image in a private VPC subnet without internet access?
Accepted Answerasked 5 months agoRecreate a default VPC within my Classic Platform
Accepted Answerasked a month agoVPC subnet routing.
Accepted Answerasked 6 months agoAssociating DHCP options with a subnet instead of VPC?
Accepted Answerasked 23 days agoVPC Interface Endpoint Limitation on one subnet per Availability Zone for "Enable Private DNS Name"
Accepted Answerasked 5 years agoAWS Client VPN - my systems are in different subnets that are in different VPCs
asked 7 months agoHow do we correctly link the DC Gateway into the VPC, is a VG required?
Accepted Answerasked a year agoSubnets associated with a route table show as not associated with any RT
asked 3 years agoError in CodeBuild: VPC_CLIENT_ERROR: Unexpected EC2 error: error while getting DHCP options for VPC
asked 7 days ago
So just to be clear 1 DHCP options set in a VPC will serve multiple subnets in multiple AZs within a VPC just fine, you don't need to create multiple DHCP options set.