Skip to content

Source AWS credentials from Cursor Cloud environment variables#2

Draft
TravisDart wants to merge 1 commit into
masterfrom
cursor/source-aws-env-vars-e4ec
Draft

Source AWS credentials from Cursor Cloud environment variables#2
TravisDart wants to merge 1 commit into
masterfrom
cursor/source-aws-env-vars-e4ec

Conversation

@TravisDart

Copy link
Copy Markdown
Contributor

Summary

Adds a shared aws_env module that sources AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from Cursor Cloud environment variables at startup.

  • Validates required AWS credentials before any S3/AWS CLI work runs
  • Defaults AWS_DEFAULT_REGION to us-east-1 when unset
  • Passes sourced credentials into all AWS CLI subprocess calls
  • Passes sourced credentials into the export-documents Docker Elasticsearch container

Testing

  • uv run main.py list s3://test-bucket/ without credentials prints a clear error instead of an AWS CLI auth failure
Open in Web Open in Cursor 

Add a shared aws_env module that validates AWS_ACCESS_KEY_ID and
AWS_SECRET_ACCESS_KEY at startup and passes them through to AWS CLI
subprocesses and the export-documents Docker container.

Co-authored-by: Travis Dart <TravisDart@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants