The first SQL statement results in an "ERROR: syntax error at or near \\ " This refers to s3_uri\\gset.
psql> SELECT aws_commons.create_s3_u