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

Fix cdk-base on AWS deep learning AMI #1612

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

philmcmahon
Copy link
Contributor

@philmcmahon philmcmahon commented Jan 31, 2025

What does this change?

The most significant change in this PR is that it removes the | quote filter (https://docs.ansible.com/ansible/latest/collections/ansible/builtin/quote_filter.html) on the amigo data bucket variable in the cdk-base logs role. I found that this wasn't working when combined with the deep learning amigo base recipe. I did try to get this working - I think it's related to a different version of jinja2 being installed on the deep learning base recipe - but I couldn't get to the bottom of it, and this change does seem to work

I'm not sure why we are quoting the bucket name and didn't find anything in Nic's pr where it was introduced (#706). I've tested on CODE to verify that this doesn't break anything.

I've also introduced a new aws_polling variable to the packer config, which is only set for bakes with an xlarge build instance, to stop these larger bakes from timing out (the dep learning AMI has 80GB or so of libraries on it so takes a long time to 'freeze' to an AMI)

This also adds a role to remove unattended-upgrades from the deep learning AMI as this causes problems

How to test

@philmcmahon philmcmahon force-pushed the pm-cdk-base-dlami branch 4 times, most recently from 535b4d2 to 86b297a Compare February 11, 2025 10:48
@philmcmahon philmcmahon marked this pull request as ready for review February 11, 2025 11:05
@philmcmahon philmcmahon requested a review from a team as a code owner February 11, 2025 11:05
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.

1 participant