Skip to content
sriram1998Public

About

A locally hosted SSM util with tree view management of the parameters and a better UI to manage 100s of parameters easily.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

AWS SSM Parameter Manager

A modern full-stack application for managing AWS Systems Manager (SSM) Parameter Store with an intuitive tree-based interface. The server reads all SSM parameters from AWS Parameter Store and creates a tree-like structure from the path variables (e.g., /app/database/host becomes a hierarchical tree). This tree structure is sent to the client application which renders it in an intuitive manner, making it easier to navigate and manage SSM parameters compared to the standard AWS console interface.

Project Overview

This application consists of two main components:

  • Server: A TypeScript/Node.js Express API that interacts with AWS services, specifically designed to simplify the UI experience for AWS Systems Manager (SSM) Parameter Store.
  • Client: A modern React frontend built with Vite, Shadcn UI, and Redux Toolkit that provides a better, more intuitive, and faster UI for managing your SSM parameters.

Features

Multiple Login Management

Manage multiple AWS accounts and profiles seamlessly. Store and switch between different AWS credentials without the hassle of manually configuring AWS CLI profiles.

Login Screen

Main Layout with Tree-Based Organization

The main layout presents your SSM parameters in a tree-based structure for more intuitive organization. Parameters are grouped hierarchically by path (e.g., /app/database/host appears under nested folders), so you can navigate and find parameters the same way you think about your application structure—no more scrolling through flat lists.

Main Layout

Profile Switch

Quickly switch between different AWS profiles with a simple dropdown. No need to reconfigure or restart the application—switch profiles on the fly and continue working.

Profile Switch

Region Switch

Switch between AWS regions effortlessly. Access and manage SSM parameters across different regions from a single interface, making it easy to work with multi-region deployments.

Region Switch

Intuitive Tree-Based and Table-Based Views

View your SSM parameters in two convenient formats:

  • Tree View: Navigate parameters in a hierarchical folder-like structure that matches your parameter paths (e.g., /app/database/host).
  • Table View: View all parameters in a flat, sortable table format. Ideal for quick scanning and bulk operations.

Bulk and Individual Delete

Delete SSM parameters directly from the UI with confirmation dialogs:

  • Bulk delete: Select multiple parameters via checkboxes and delete them at once using the top delete button. A confirmation dialog shows the count of parameters to be deleted.
  • Individual delete: Delete a single parameter from the row actions (trash icon). A confirmation dialog shows the parameter name before deletion. The tree and table update immediately after a successful delete.

Create Parameter

Quickly create new parameters under any path using the dedicated Create Parameter dialog.

Create Parameter

Edit Parameter

Open an existing parameter in an Edit dialog with its current path, value, and type pre-filled. After saving, the app deletes the old path and creates the updated parameter, refreshing the tree automatically.

Edit Parameter

Fast Fuzzy Search

Quickly find parameters with a powerful fuzzy search that matches parameter names and values. The search is optimized for speed and provides instant results as you type, making it easy to locate specific parameters even in large parameter stores.

Tech Stack

Server

  • Node.js 16+ - Runtime environment
  • TypeScript - Type safety
  • Express - Web framework
  • AWS SDK - AWS service integration
  • Helmet - Security middleware
  • CORS - Cross-origin resource sharing
  • express-rate-limit - Rate limiting
  • Zod - Schema validation

Client

  • Vite - Build tool and dev server
  • React 18 - UI library
  • TypeScript - Type safety
  • Shadcn UI - Component library
  • Redux Toolkit - State management
  • React Router - Routing
  • Tailwind CSS - Styling
  • Axios - HTTP client

Getting Started

Prerequisites

  • Docker and Docker Compose (for quick start)
  • Node.js 16 or higher (for local development)
  • npm or yarn
  • AWS account with SSM Parameter Store access

Quick Start (Docker)

Start the application with Docker Compose:

docker compose up --build

The client will be available at http://localhost:5173 and the API at http://localhost:3001/api. No .env files are required for Docker startup.

Installation (Local Development)

Server Setup

  1. Navigate to the server directory:
cd server
  1. Install dependencies:
npm install
  1. Create a .env file in the server directory:
PORT=3030
FRONTEND_URL=http://localhost:5173
CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
  1. Start the development server:
npm run dev

The server will run on http://localhost:3030 (or the port specified in your .env file).

Client Setup

  1. Navigate to the client directory:
cd client
  1. Install dependencies:
npm install
  1. Create a .env file in the client directory:
VITE_API_URL=http://localhost:3030/api
  1. Start the development server:
npm run dev

The app will be available at http://localhost:5173

Quick Start Script

You can use the provided start.sh script to start both server and client with a single command:

./start.sh

This will start both services in the background. Press Ctrl+C to stop both services.

Build

Server Build

cd server
npm run build
npm start

Client Build

cd client
npm run build
npm run preview

Project Structure

AWE-SSM/
├── client/
│   ├── src/
│   │   ├── components/       # React components
│   │   │   ├── ui/          # Shadcn UI components
│   │   │   └── ThemeToggle.tsx
│   │   ├── pages/           # Page components
│   │   │   ├── Home.tsx
│   │   │   ├── Layout.tsx
│   │   │   └── LoginScreen.tsx
│   │   ├── store/           # Redux store
│   │   │   ├── slices/     # Redux slices
│   │   │   ├── hooks.ts    # Typed Redux hooks
│   │   │   └── store.ts    # Store configuration
│   │   ├── lib/            # Utility functions
│   │   ├── contexts/       # React contexts
│   │   ├── hooks/         # Custom hooks
│   │   ├── types/         # TypeScript types
│   │   ├── App.tsx         # Main app component
│   │   └── main.tsx        # Entry point
│   ├── components.json      # Shadcn UI configuration
│   ├── tailwind.config.js   # Tailwind configuration
│   └── vite.config.ts       # Vite configuration
├── server/
│   ├── src/
│   │   ├── controllers/     # Request controllers
│   │   │   ├── aws.controller.ts
│   │   │   ├── ssm.controller.ts
│   │   │   └── index.ts
│   │   ├── services/        # Business logic
│   │   │   ├── awsConfigService.ts
│   │   │   └── ssmService.ts
│   │   ├── routes/          # API routes
│   │   │   ├── aws.ts
│   │   │   └── ssm.ts
│   │   ├── middleware/      # Express middleware
│   │   │   └── errorHandler.ts
│   │   ├── validation/      # Request validation
│   │   │   ├── aws.validation.ts
│   │   │   ├── ssm.validation.ts
│   │   │   └── validator.ts
│   │   ├── utils/           # Utility functions
│   │   │   └── constructTree.ts
│   │   ├── types/           # TypeScript types
│   │   └── server.ts        # Server entry point
│   └── aws/                 # AWS configuration directory
│       └── .config          # AWS credentials (DO NOT COMMIT)
└── scripts/
    └── create_vars.py

Security

⚠️ CRITICAL SECURITY CONSIDERATIONS

AWS Credentials Storage

This project uses a locally scoped config file at server/aws/.config that stores the logged-in profile with AWS access key and secret. This file is used to load parameters and display AWS-related information.

CRITICAL: This file contains sensitive AWS credentials and should NEVER be:

  • Committed to version control (ensure it's in .gitignore)
  • Exposed to a public-facing server
  • Shared or transmitted over insecure channels

This application should ALWAYS be run as a local utility or within a private network only.

Environment Variables

Never commit sensitive information to version control. Always use environment variables for:

  • Server port configuration
  • CORS origins
  • API endpoints
  • Any other configuration that may vary between environments

Best Practices

  1. Local Development Only: This application is designed for local development and should not be deployed to public-facing servers without additional security measures
  2. Network Isolation: If running on a network, ensure it's a private, trusted network

License

See LICENSE file for details.

About

A locally hosted SSM util with tree view management of the parameters and a better UI to manage 100s of parameters easily.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages