Cloudformation: How to Reference a DNS IP address for DHCPOptions, why does

0

Just trying to create a simple DHCP option set to me EC2 instances have a default domain..

but when i just input the ip address as a test ( not even referencing) it is telling me it wants a string

DHCPTest:
Type: AWS::EC2::DHCPOptions
Properties:
DomainName: test.com
DomainNameServers: "10.0.0.1"

Value of property DomainNameServers must be of type List of String

The domain name Servers will be a reference to an EC2 created IP address

but i can just go into the front end and simple type in that ip address and it saves fine... i dont want to use the amazon provided DNS.. how can i create the DHCP with the ip addresses? This should be simple

gefragt vor 5 Jahren387 Aufrufe
1 Antwort
0

[SOLVED] Its a LIST of string, not a string. Reading Comprehension helps

If anyone else runs into this, the syntax is:

DomainNameServers:
- !getAtt AdInstance.PrivateIp

works, needs to be listed with the dashes

Edited by: JWhitcomb-AWS on Jun 17, 2019 9:52 AM

Edited by: JWhitcomb-AWS on Jun 17, 2019 9:53 AM

Edited by: JWhitcomb-AWS on Jun 17, 2019 9:53 AM

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen