Skip to main content

Haystack

PyPI version Python versions Downloads License: MIT Tests

Managing a multi-account AWS organization? Haystack searches CloudFormation stacks across all your AWS accounts from the command line.

pip install aws-haystack
haystack platform-network

Why?

Before: ClickOps through AWS console → switch account → switch region → CloudFormation → list stacks → repeat 50 times
After: haystack platform-network → see all matches across all accounts

Usage

# Find any stack containing "api"
haystack api

# Search specific region only  
haystack database --region us-east-1

# First run: authenticate once via browser, then fast searches for ~8 hours

Search is smart: case-insensitive, partial matching

  • haystack api finds "user-api-prod", "api-gateway", "API-Service"
  • haystack prod finds "api-prod", "production-db", "PROD-Web"

What You Get

Clean results:

┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┓
┃ Stack Name         ┃ Account ID  ┃ Account Name       ┃ Region    ┃ Status           ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━┩
│ user-api-prod      │ 123456789   │ Production         │ us-east-1 │ CREATE_COMPLETE  │
│ user-api-staging   │ 987654321   │ Staging            │ us-east-1 │ CREATE_COMPLETE  │
└────────────────────┴─────────────┴────────────────────┴───────────┴──────────────────┘

Fast & secure:

  • Searches all accounts/regions in parallel
  • Uses AWS SSO (no hardcoded credentials)
  • Caches authentication for hours
  • Smart role selection (admin > power > first available)

Commands

haystack <search-term>                     # Search all accounts/regions
haystack <search-term> --region us-east-1 # Search specific region  
haystack --clear                           # Clear cached credentials
haystack --help                            # Show all options

Requirements

  • Python 3.8+
  • AWS Identity Center (SSO) access
  • Web browser (for one-time auth)

First run: Authenticate via browser, then fast searches for ~8 hours.

Metadata

Release files for aws-haystack 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-haystack 0.1.0
File Size Uploaded
aws_haystack-0.1.0.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-haystack 0.1.0
File Interpreter ABI Platform
aws_haystack-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.4 kB

Release files / aws_haystack-0.1.0.tar.gz

Download URL aws_haystack-0.1.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7849e1113ab4ee23fdf4277960b4033589d724a1b11a0a74d811829665b71ba1
BLAKE2b-256 checksum
How to use checksums
75ed83ff6ad753a490868486408f566e750062d5c5f64da237ed23de64d3c5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / aws_haystack-0.1.0-py3-none-any.whl

Download URL aws_haystack-0.1.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec2d4c309bc41a7ab1457333d42d84683f65d1a5e9eb4e0428ee74901ca7e4b7
BLAKE2b-256 checksum
How to use checksums
29c4eace58367a217e362b83d0cf876757743a2d1581067ab8ff4ff0377a67d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page