update scope and removed old S3 attachment definition