关于创建endpoint报错-Enabling private DNS requires both enableDnsSupport and enableDnsHostnames VPC attributes set to true for vpc-xxxx
今天在为某个vpc创建endpoint时(com.amazonaws.cn-northwest-1.ssm的Interface类型)时报如下错误及提示
Enabling private DNS requires both enableDnsSupport and enableDnsHostnames VPC attributes set to true for vpc-xxxx
根据提示应该是上面的vpc中没有开启 enableDnsSupport and enableDnsHostnames 这两个属性
于是定位到VPC ---> 右键 -- > Edit VPC Settings 时,保证如下两个选项都进行勾选,最后保存就可以去正常创建endpoint了

扩展:笔者也到官网文档中去看了一下,关于这两个选项的解释,如下:
| Attribute | Description |
|---|---|
enableDnsHostnames |
Determines whether the VPC supports assigning public DNS hostnames to instances with public IP addresses. The default for this attribute is |
enableDnsSupport |
Determines whether the VPC supports DNS resolution through the Amazon provided DNS server. If this attribute is The default for this attribute is |
作者:一名卑微的IT民工
本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。
博主的文章没有高度、深度和广度,只是凑字数。由于博主的水平不高,不足和错误之处在所难免,希望大家能够批评指出。
博主是利用读书、参考、引用、抄袭、复制和粘贴等多种方式打造成自己的文章,请原谅博主成为一个卑微的IT民工!