barnybug / cli53

Command line tool for Amazon Route 53
MIT License
1.97k stars 270 forks source link

Multiple lines on a multi-TXT record #300

Open bobuehlein opened 4 years ago

bobuehlein commented 4 years ago

I see your example for making a multi TXT record

"cli53 rrcreate $domain 'txt TXT "a" "b"'"

It makes the record in Route53, but it is on one line

"a" "b"

Rather than how it needs to be

"a" "b"

Or... am I missing something? :)

ahathaway commented 1 year ago

I am also having this same issue with release 0.8.22 installed using homebrew.

I am running this command (redacted): cli53 rrcreate --replace --profile xxxx-xxxxx example.com '@ 60 IN TXT "v=spf1 ip4:XXX.XX.XXX.XXX include:xxxxxxxxx.com include:_spf.xxxxxx.com ~all" "google-site-verification=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"'

The separate double quoted strings appear on the same line and are immediately visible in a cli53 export call as well as the web console. If I add a newline in the web console it fixes it.

I have also tried using the --ttl parameter and taking the ttl out of the single quoted string, it gives me an error about a missing TTL when i do that.

Would love to get a clear answer on this issue. I would imagine (although not verified) that this could have an effect on MX records as well since they are also multi-line.