A Chrome/Opera browser extension that enables standard keyboard shortcuts (Ctrl+C and Ctrl+V) in AWS EC2 Instance Connect terminal.
AWS EC2 Instance Connect's browser-based terminal doesn't support standard keyboard shortcuts for copy and paste. Users have to right-click and select copy/paste from the context menu, which slows down workflow.
- ✅ Ctrl+Shift+C - Copy selected text from terminal
- ✅ Ctrl+Shift+V - Paste text into terminal
- ✅ Visual notifications for copy/paste actions
- ✅ Auto-detects AWS EC2 terminal pages
- ✅ Works with both Chrome and Opera browsers
- ✅ Doesn't interfere with terminal operations (Ctrl+C still sends interrupt signal)
- Open Chrome browser
- Go to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked" button
- Navigate to and select the
aws-terminal-shortcutsfolder - The extension should now appear in your extensions list!
- Open Opera browser
- Go to
opera://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked" button
- Navigate to and select the
aws-terminal-shortcutsfolder - The extension should now appear in your extensions list!
When you first load the extension, you may need to grant clipboard permissions:
- Click on the extension icon (or it will prompt you)
- Allow clipboard read and write permissions
- You're all set!
-
Navigate to AWS Console: Go to your AWS EC2 Instance Connect terminal
- Example:
https://console.aws.amazon.com/ec2/...
- Example:
-
Wait for notification: You should see a green notification saying "AWS Terminal shortcuts active!"
-
Copy text:
- Select text in the terminal with your mouse
- Press
Ctrl+Shift+C - You'll see a "Copied!" notification
-
Paste text:
- Press
Ctrl+Shift+V - You'll see a "Pasted!" notification
- Press
| Shortcut | Action |
|---|---|
Ctrl+Shift+C |
Copy selected text |
Ctrl+Shift+V |
Paste from clipboard |
Note: Regular Ctrl+C still works as the terminal interrupt signal (SIGINT) to stop processes. This extension uses Ctrl+Shift combinations to avoid interfering with normal terminal operations.
- Check if extension is enabled: Go to
chrome://extensions/and make sure the extension is enabled - Refresh the AWS page: After installing the extension, refresh your EC2 Instance Connect page
- Check console: Press
F12to open Developer Tools, check the Console tab for any error messages
- Make sure you granted clipboard permissions when installing
- In Chrome, go to
chrome://extensions/→ click on extension details → check permissions - Some browsers may require you to interact with the page first (click somewhere) before clipboard access works
- Make sure you're on an actual EC2 Instance Connect page
- Try the alternative shortcuts (
Ctrl+Shift+C/Ctrl+Shift+V) - Check if the terminal has fully loaded (wait a few seconds after page load)
- Content Script Injection: The extension injects JavaScript into AWS Console pages
- Terminal Detection: Automatically detects when you're on an EC2 terminal page
- Keyboard Event Interception: Listens for keyboard shortcuts and intercepts them
- Clipboard API: Uses modern browser Clipboard API for copy/paste operations
- Visual Feedback: Shows notifications to confirm actions
clipboardRead: Required to read clipboard content for pasteclipboardWrite: Required to write to clipboard for copyhost_permissions: Only runs on AWS Console pages for security
Want to modify or improve the extension?
- Edit the
content.jsfile to change behavior - Edit the
manifest.jsonfile to change permissions or metadata - After making changes, go to
chrome://extensions/and click the "Reload" button on the extension
- DevOps Engineers: Quickly copy commands, logs, and output from EC2 terminals
- System Administrators: Efficiently paste configuration commands
- Developers: Copy error messages and debugging output
- Anyone: Save time and improve workflow when using AWS EC2 Instance Connect
- Extension only runs on AWS Console pages
- No data is sent to external servers
- All clipboard operations happen locally in your browser
- Open source - you can inspect all the code
Potential features for future versions:
- Support for other cloud providers (GCP, Azure)
- Customizable keyboard shortcuts
- Command history feature
- Auto-paste formatting for common commands
- Settings page for user preferences
If you encounter any issues or have suggestions, please:
- Check the Troubleshooting section above
- Check browser console for error messages (
F12→ Console tab) - Verify you're using the latest version
This extension is provided as-is for educational and productivity purposes.
Version: 1.0
Last Updated: February 2026
Compatible: Chrome, Opera, and Chromium-based browsers