Is it possible to allow a Network ACL by a hostname? Not IP address.
For a certain subnet, I want to allow all outbound traffic to host.example.com (port 443) but deny everything else.
Is it possible to allow a Network ACL by a hostname? Not IP address.
For a certain subnet, I want to allow all outbound traffic to host.example.com (port 443) but deny everything else.
You can't.
NACLs only allow for IP addresses.
You could modify the outbound rule(s) in your security group to only allow traffic to port 443/tcp, but you also won't be able to set it by host name; it's probably better than using a NACL since it won't apply to every other EC2 instance (ENI, actually) in the subnet and it will also apply to the other subnets in the VPN where you might move this host (quicker than changing all the subnets).