-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(ec2): ARM-backed bastion hosts try to run x86-based Amazon Linux AMI #12280
fix(ec2): ARM-backed bastion hosts try to run x86-based Amazon Linux AMI #12280
Conversation
944f3f7
to
56d87a3
Compare
/** | ||
* The instance's CPU architecture | ||
*/ | ||
public readonly architecture: InstanceArchitecture; |
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.
Wasn't sure if it would have been better to forgo a new property and instead just make the resolveArchitecture
method public. Thoughts?
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.
I like the current public name. The best of both worlds would be to make resolveArchitecture
a getter :)
public get architecture(): InstanceArchitecture {
// ...body of resolveArchitecture here...
}
0a5ea83
to
f42eae9
Compare
f42eae9
to
1e16596
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.
I like what you're doing. Some small comments.
Something that occurred to me: don't recent Amazon Linux AMIs come with the SSM Agent preinstalled? Why do we even need to yum install
it at all?
/** | ||
* The instance's CPU architecture | ||
*/ | ||
public readonly architecture: InstanceArchitecture; |
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.
I like the current public name. The best of both worlds would be to make resolveArchitecture
a getter :)
public get architecture(): InstanceArchitecture {
// ...body of resolveArchitecture here...
}
afae5fb
to
f725a33
Compare
@rix0rrr You're right, there is no reason to manually install the SSM Agent in this case since it is preinstalled on Amazon Linux 2. I have removed the UserData stuff. |
a4aab0f
to
5bcc8d6
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.
Almost there!
@rix0rrr Let me know if I have addressed all your concerns. Thanks! |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Fixes #12279
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license