[aws] narrow scope of unf warning

see #2320