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

Temporarily override GPU base AMI #161

Merged
merged 1 commit into from
Nov 7, 2023
Merged

Temporarily override GPU base AMI #161

merged 1 commit into from
Nov 7, 2023

Conversation

Realmonia
Copy link
Contributor

Summary

Temporarily override base AMI for AL2 GPU due to a known al2 kernel and EFA/Nvidia incompatibility

Implementation details

Add a variable and change al2gpu recipe to use a pinned al2 base AMI.

Testing

New tests cover the changes: N/A

Ran REGION=us-west-2 make al2gpu and verified a pinned base AMI is used (ami-0bac1825e471f5042)

Description for the changelog

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

variables.pkr.hcl Outdated Show resolved Hide resolved
sparrc
sparrc previously approved these changes Nov 6, 2023
@@ -84,6 +85,7 @@ source_ami_al2 = "$ami_name_al2_x86"
source_ami_al2arm = "$ami_name_al2_arm"
source_ami_al2kernel5dot10 = "$ami_name_al2_kernel5dot10"
source_ami_al2kernel5dot10arm = "$ami_name_al2_kernel5dot10arm"
source_ami_al2_gpu = "amzn2-ami-minimal-hvm-2.0.20230926.0-x86_64-ebs"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we don't need to update generate-release-vars.sh since the default value for source_ami_al2_gpu is defined in variables.pkr.hcl?

variable "source_ami_al2_gpu" {
  type        = string
  description = "Amazon Linux 2 source AMI to build AL2GPU AMI from. This is a temporary override."
  default     = "amzn2-ami-minimal-hvm-2.0.20230926.0-x86_64-ebs"
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True. This is writing to the release.autopkrvars.hcl so that releaser can see the diff and write change log though, so I would not think it is a big deal to keep it.

@Realmonia Realmonia merged commit 2f55b40 into aws:main Nov 7, 2023
2 checks passed
@Realmonia Realmonia mentioned this pull request Nov 7, 2023
hozkaya2000 pushed a commit that referenced this pull request Nov 8, 2023
fierlion added a commit that referenced this pull request Dec 12, 2023
fierlion added a commit that referenced this pull request Dec 12, 2023
rwarren25 pushed a commit to rwarren25/amazon-ecs-ami that referenced this pull request Jul 9, 2024
rwarren25 pushed a commit to rwarren25/amazon-ecs-ami that referenced this pull request Jul 9, 2024
rwarren25 pushed a commit to rwarren25/amazon-ecs-ami that referenced this pull request Jul 9, 2024
rwarren25 pushed a commit to rwarren25/amazon-ecs-ami that referenced this pull request Jul 9, 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.

5 participants