added gpg code for AWS