Skip to content
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

Improve OS username resolution for EC2 instances #1808

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

pastuxso
Copy link
Contributor

  • Expanded supported patterns to include rhel and suse-sles images.
  • Introduced a defaultUserName (ec2-user) for unsupported or unmatched image patterns.
  • Updated resolveOsUserName function to handle null or undefined values for imageName.
  • Fixed case-sensitivity issues by converting imageName to lowercase before matching.
  • Simplified logic to ensure robust and predictable username resolution.
  • Included the --region flag

Closes: #1807

- Expanded supported patterns to include rhel and suse-sles images.
- Introduced a defaultUserName (ec2-user) for unsupported or unmatched image patterns.
- Updated resolveOsUserName function to handle null or undefined values for imageName.
- Fixed case-sensitivity issues by converting imageName to lowercase before matching.
- Simplified logic to ensure robust and predictable username resolution.
- Included the --region flag
@pastuxso pastuxso marked this pull request as ready for review November 19, 2024 22:48
Copy link
Member

@sourishkrout sourishkrout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM

@sourishkrout sourishkrout merged commit 3640fa7 into main Nov 19, 2024
1 check passed
@sourishkrout sourishkrout deleted the cris/aws-renderer-fix branch November 19, 2024 23:09
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.

Issues with EC2 render->Connect via SSH
2 participants