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

Ensure packer to provision EC2 instance with imdsv2 enabled #437

Conversation

peterzhuamazon
Copy link
Member

Description

Ensure packer to provision EC2 instance with imdsv2 enabled
Note that this will not make the AMI itself to be imdsv2 only
We currently still maintain the ability for AMI to be both imdsv1 and imdsv2, and use Jenkins EC2 plugin to enforce the imdsv2 during provision of agents.

Thanks.

Issues Resolved

#435

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
@peterzhuamazon
Copy link
Member Author

Tested on beta jenkins account and we do not need to rebuild, due to this will only affect the AMI build process, not AMI itself.

Thanks.

Copy link
Member

@gaiksaya gaiksaya left a comment

Choose a reason for hiding this comment

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

Please keep watch of hop_limit. Mostly wont take have effect since this is for EC2 building the AMI

@peterzhuamazon
Copy link
Member Author

Please keep watch of hop_limit. Mostly wont take have effect since this is for EC2 building the AMI

Yes, have tested to build within a docker, and still runs fine as the connection is just initialized from docker -> EC2.

@peterzhuamazon
Copy link
Member Author

@peterzhuamazon peterzhuamazon merged commit 721c300 into opensearch-project:main Jul 10, 2024
4 checks passed
@peterzhuamazon peterzhuamazon deleted the update-imdsv2-build-agents branch July 10, 2024 21:51
@peterzhuamazon peterzhuamazon linked an issue Jul 10, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Enable imdsv2 on all the packer build template
2 participants