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

Add iam instance profile support #1679

Merged

Conversation

AlexSchultz-clumio
Copy link
Contributor

Issue #, if available:

Description of changes:
In order to use SSM for building rather than SSH, we need to be able to configure the iam_instance_profile. This change adds iam_instance_profile that can be used when setting ssh_interfance to session_manager.

When using session_manager you will need to use a non-minimal version of the source ami to ensure it has the SSM agent
available at launch. You may also need to increase the volume size from 4 depending on which source AMI you use.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

Successful build with make k8s=1.29 ssh_interface=session_manager iam_instance_profile=ssm-profile aws_region=us-east-2 source_ami_filter_name="amzn2-ami-hvm-*" launch_block_device_mappings_volume_size=8

@AlexSchultz-clumio AlexSchultz-clumio changed the base branch from master to main February 20, 2024 16:38
In order to better use SSM for building rather than SSH, we need to be
able to configure the iam_instance_profile.  This change adds
`iam_instance_profile` that can be used when setting `ssh_interfance` to
`session_manager`.  When using `session_manager` you will need to use a
non-minimal version of the source ami to ensure it has the SSM agent
available at launch. You may also need to increase the volume size from
4 depending on which source AMI you use.
@AlexSchultz-clumio
Copy link
Contributor Author

@cartermckinnon please review when you have a moment

@cartermckinnon
Copy link
Member

/ci build

Copy link
Contributor

github-actions bot commented Mar 5, 2024

@cartermckinnon roger that! I've dispatched a workflow. 👍

Copy link
Contributor

github-actions bot commented Mar 5, 2024

@cartermckinnon the workflow that you requested has completed. 🎉

AMI variantBuildTest
1.23 / al2success ✅skipped ⏭️
1.23 / al2023success ✅skipped ⏭️
1.24 / al2success ✅skipped ⏭️
1.24 / al2023success ✅skipped ⏭️
1.25 / al2success ✅skipped ⏭️
1.25 / al2023success ✅skipped ⏭️
1.26 / al2success ✅skipped ⏭️
1.26 / al2023success ✅skipped ⏭️
1.27 / al2success ✅skipped ⏭️
1.27 / al2023success ✅skipped ⏭️
1.28 / al2success ✅skipped ⏭️
1.28 / al2023success ✅skipped ⏭️
1.29 / al2success ✅skipped ⏭️
1.29 / al2023success ✅skipped ⏭️

@cartermckinnon cartermckinnon merged commit 5554da8 into awslabs:main Mar 5, 2024
10 checks passed
atmosx pushed a commit to gathertown/amazon-eks-ami that referenced this pull request Jun 18, 2024
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.

2 participants