Skip to content

Conversation

@yannhowe
Copy link

@yannhowe yannhowe commented Nov 5, 2025

Fix: Add sudo -E flag to installation examples to preserve environment variables

Updated all installation examples to include sudo -E flag, which is required to preserve exported environment variables when running with elevated privileges. Without this flag, users encounter AWS SSM Parameter Store errors when the script attempts to retrieve credentials that were already exported in their shell.

Changes:

  • Added sudo -E to all install script usage examples
  • Added inline comment explaining the -E flag purpose
  • Updated troubleshooting commands to include sudo -E
  • Maintains backward compatibility with direct variable passing method

This resolves a common user error where exported credentials are not passed to the script when using sudo.

**Fix: Add sudo -E flag to installation examples to preserve environment variables**

Updated all installation examples to include `sudo -E` flag, which is required to preserve exported environment variables when running with elevated privileges. Without this flag, users encounter AWS SSM Parameter Store errors when the script attempts to retrieve credentials that were already exported in their shell.

**Changes:**
- Added `sudo -E` to all install script usage examples
- Added inline comment explaining the `-E` flag purpose
- Updated troubleshooting commands to include `sudo -E`
- Maintains backward compatibility with direct variable passing method

This resolves a common user error where exported credentials are not passed to the script when using sudo.
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.

1 participant