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

AL2023 Isolated build temp workaround for EFA installer #2087

Merged
merged 4 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions templates/al2023/provisioners/install-efa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ sudo dnf swap -y gnupg2-minimal gnupg2-full
##########################################################################################
### Download installer ###################################################################
##########################################################################################
curl -O ${EFA_DOMAIN}/${EFA_PACKAGE}
if [ ${PARTITION} == "aws-iso-f" ] || [ ${PARTITION} == "aws-iso-e" ]; then
aws s3 cp --region ${BINARY_BUCKET_REGION} s3://${BINARY_BUCKET_NAME}/rpms/${EFA_PACKAGE} .
aws s3 cp --region ${BINARY_BUCKET_REGION} s3://${BINARY_BUCKET_NAME}/rpms/aws-efa-installer.key . && gpg --import aws-efa-installer.key
aws s3 cp --region ${BINARY_BUCKET_REGION} s3://${BINARY_BUCKET_NAME}/rpms/${EFA_PACKAGE}.sig .
else
curl -O ${EFA_DOMAIN}/${EFA_PACKAGE}
curl -O ${EFA_DOMAIN}/aws-efa-installer.key && gpg --import aws-efa-installer.key
curl -O ${EFA_DOMAIN}/${EFA_PACKAGE}.sig
fi

curl -O ${EFA_DOMAIN}/aws-efa-installer.key && gpg --import aws-efa-installer.key
curl -O ${EFA_DOMAIN}/${EFA_PACKAGE}.sig
if ! gpg --verify ./aws-efa-installer-${EFA_VERSION}.tar.gz.sig &> /dev/null; then
echo "EFA Installer signature failed verification!"
exit 2
Expand Down
5 changes: 5 additions & 0 deletions templates/al2023/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@
"script": "{{template_dir}}/provisioners/install-efa.sh",
"environment_vars": [
"AWS_REGION={{user `aws_region`}}",
"AWS_ACCESS_KEY_ID={{user `aws_access_key_id`}}",
"AWS_SECRET_ACCESS_KEY={{user `aws_secret_access_key`}}",
"AWS_SESSION_TOKEN={{user `aws_session_token`}}",
"BINARY_BUCKET_NAME={{user `binary_bucket_name`}}",
"BINARY_BUCKET_REGION={{user `binary_bucket_region`}}",
"ENABLE_EFA={{user `enable_efa`}}"
]
},
Expand Down
Loading