[aws|dns] Fix some syntax errors