I have a situation where i have output of one command, like this,
192.168.1.84
192.168.1.85
i want to use this, and make changes in another file, i.e add this ip addresses one after another like in this form. Below the ResourceRecordSet line.
ubuntu@kops:/mujahid$ cat change-resource-record-sets.json
{
"Comment": "Update record to reflect new IP address of home router",
"Changes": [
{
"Action": "UPSERT",
"ResourceRecordSet": {
"Name": "testing.mak.online.",
"Type": "A",
"TTL": 60,
"ResourceRecords": [
{
"Value": "192.168.1.84"
},
{
"Value": "192.168.1.5"
}
]
}
}
]
}
Action
,Name
,Type
, andTTL
be in the newChanges
array item? It would be better if you added the expected output to the question so that we don't have to guess what you mean.