-
Notifications
You must be signed in to change notification settings - Fork 0
feat: support passing extra parameters and using different documents #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
7e56179 to
7cf0766
Compare
2edc1ad to
9714b1a
Compare
6fd5c5c to
e4efac9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for using alternative AWS Systems Manager documents and passing extra parameters to SsmPortForwardingSession, enabling more advanced use cases like tunneling through an EC2 instance to access private RDS databases.
Key changes:
- Added
documentandextra_paramsoptional parameters toSsmPortForwardingSession.new - Extra parameters are merged with required parameters, with explicit parameters taking precedence
- Documentation and tests demonstrate using
AWS-StartPortForwardingSessionToRemoteHostfor database access
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
lib/aws_ec2_environment/ssm_port_forwarding_session.rb |
Added document and extra_params parameters to initialize method and updated ssm_port_forward_cmd to use them |
sig/aws_ec2_environment/ssm_port_forwarding_session.rbs |
Updated type signatures for new parameters and private method |
spec/aws_ec2_environment/ssm_port_forwarding_session_spec.rb |
Added comprehensive test coverage for custom documents, extra parameters, and parameter overriding |
README.md |
Added example demonstrating database access through SSM tunneling with custom document and parameters |
CHANGELOG.md |
Documented the new feature in the unreleased section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
See the new section of the readme for why this is useful 🙂