Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngo

AWS Secrets Manager Setup

This application uses AWS Secrets Manager to securely store AWS credentials instead of hardcoding them.

1. Create a Secret in AWS Secrets Manager

Create a secret with the following JSON structure:

{
  "accessKeyId": "YOUR_AWS_ACCESS_KEY_ID",
  "secretAccessKey": "YOUR_AWS_SECRET_ACCESS_KEY",
  "region": "us-east-1"
}

Default secret name: ngo-app/aws-credentials

2. Configure Environment Variables

Set the following environment variables:

Variable Description Default
AWS_REGION AWS region for Secrets Manager us-east-1
AWS_SECRET_NAME Name of the secret in Secrets Manager ngo-app/aws-credentials

3. IAM Permissions

The application needs permissions to access Secrets Manager. Ensure your IAM role/user has:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "secretsmanager:GetSecretValue"
      ],
      "Resource": "arn:aws:secretsmanager:us-east-1:YOUR_ACCOUNT_ID:secret:ngo-app/aws-credentials*"
    }
  ]
}

4. Running the Application

For local development, ensure AWS credentials are configured via:

  • Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
  • AWS credentials file (~/.aws/credentials)
  • IAM role (when running on EC2/ECS/Lambda)
npm install
npm start

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages