AWS User for Contributors

In order for a contributor to upload their data, they would need their own AWS user that is assigned to the hca-contributor group. A request for an account should be files as a new ticket for the ingest team. The board is monitored regularly so the new ticket would be picked up within the day. In order for a contributor to upload their data, they would need their own AWS user that is assigned to the hca-contributor group.

This is done by a team member with a developer role.

  1. Create an AWS user

Use the name part of the email address for the account name.

# to add user as a contributor
read -p "enter username: " contributor_username
aws iam create-user --user-name $contributor_username --tags Key=project,Value=hca Key=owner,Value=tburdett Key=service,Value=ait
aws iam add-user-to-group --group hca-contributor --user-name $contributor_username
# generate secrets 
aws iam create-access-key --user-name $contributor_username > ${contributor_username}.txt
  1. The credentials json output into a <username>-access-keys.txt file. Example:
    {
     "AccessKey": {
         "UserName": "walter.white",
         "AccessKeyId": "access-key-id",
         "Status": "Active",
         "SecretAccessKey": "secret-access-key",
         "CreateDate": "2022-03-10T16:35:07+00:00"
     }
    }
    
  2. Compress the file with password. The following steps works for mac os.
    zip -er ${$contributor_username}-access-keys.zip ${$contributor_username}-access-keys.txt
    

    You will be prompted to input a password. You could use any password generator. ```bash Enter password: Verify password: adding: walter.white-access.txt (deflated 30%)

```

  1. Compose an email and attach the .zip file

Subject: AWS access keys for hca-util tool

To: wrangler.email@domain.org

Message:

Dear < Contributor Name >

Attached at the end of the email you will find a zip file with the credentials you need for the hca-util tool to upload your data. I will send you a separate email for the password of the zip file.

< Wrangler Name > will provide you with further details on how to continue with the submission.

Best regards

< Your Name >

  1. Compose a second email containing the .zip file password

Dear < Contributor Name >

The password to open the zip file is: < password >

Best Regards

< Your Name >

This is done by a wrangler.

  1. Obtain the access key from a developer (previous step)
  2. Create an upload area using the guide: how to create an upload area for the contributors using the hca-util tool
  3. Get the UUID from the created upload area Send these two sets of information separately to the contributor to minimise the chance of them falling into the wrong hands and being misused.
  • Contributor AWS Access keys are not considered secure and can be sent in the main wrangler-team email thread, usually in the same email with the first spreadsheet and upload instructions.
  • Upload area UUID is a secure piece of information that should be shared in a separate email with only the contributor and primary wrangler