add s3 support for gateway attachment