Logging into AWS at Dartmouth College

Summary

This article provides instructions for Dartmouth College faculty and staff on how to log into AWS after an account has been granted. It emphasizes the integration with Dartmouth’s Single Sign-On (SSO) using their NetID and offers two primary methods for access: via the AWS Console or AWS CLI. For AWS CLI access, users are encouraged to use environment variables for simplicity but are also provided alternative methods such as updating the AWS credentials file or using individual values in code.

Body

AWS Console Access
1. Navigate to the Dartmouth AWS login page: AWS Console.
2. Enter your Dartmouth NetID credentials when prompted.
3. You will be directed to the AWS Management Console, where you can access your AWS resources.

Using AWS CLI
1. Go to the AWS Console and log in using your Dartmouth NetID.
2. Select Access Keys from the dashboard to generate the credentials needed for AWS CLI access.
3. Follow one of the methods below to set up AWS CLI access:

Option 1: Set AWS Environment Variables (Recommended)
Simply paste the export lines provided into your terminal to set the environment variables. This method avoids the need to run aws configure.

export AWS_ACCESS_KEY_ID=XXX
export AWS_SECRET_ACCESS_KEY=XXX
export AWS_SESSION_TOKEN=XXX
  

Option 2: Add a Profile to Your AWS Credentials File
Copy the provided credentials into your ~/.aws/credentials file.

[482647302978_AdministratorAccess]
aws_access_key_id=XXX
aws_secret_access_key=XXX
aws_session_token=XXX
  

Option 3: Use Individual Values in Your Code
Use the provided access key ID, secret access key, and session token directly in your AWS service client or code.

To extend the duration of your credentials, consider using the aws configure sso command to set up automatic credential retrieval. For more details, visit the AWS CLI Documentation.

Details

Details

Article ID: 162063
Created
Fri 10/11/24 8:18 AM
Modified
Fri 10/11/24 8:18 AM

Related Articles

Related Articles (1)

Dartmouth College offers AWS accounts to faculty and staff for research, academic, and administrative purposes. AWS (Amazon Web Services) is a comprehensive public cloud platform that provides a wide range of infrastructure services.

Related Services / Offerings

Related Services / Offerings (1)

AWS is a cloud computing platform provided to the campus. ITC manages the enterprise agreement with Amazon for these services and supports platform access. A business associate agreement (BAA) has also been negotiated to support HIPAA workloads.