Bump actions/create-github-app-token from 2 to 3 in /.github/workflows
Bumps actions/create-github-app-token from 2 to 3.
updated-dependencies:
- dependency-name: actions/create-github-app-token dependency-version: ‘3’ dependency-type: direct:production update-type: version-update:semver-major …
Signed-off-by: dependabot[bot] support@github.com
ECS-optimized AMI Build Recipes
This is a packer recipe for creating an ECS-optimized AMI. It will create a private AMI in whatever account you are running it in.
Instructions
NOTE:
al2keplergpuis a build recipe that this package supports to build ECS-Optimized GPU AMIs for instances with GPUs with Kepler architecture (such as P2 type instances). ECS-Optimized GPU AMIs for this target are not officially built and published.Configuration
This recipe allows for configuration of your AMI. All configuration variables are defined and documented in the file:
./variables.pkr.hcl. This is also where some defaults are defined.Variables can be set in
./release.auto.pkrvars.hclor./overrides.auto.pkrvars.hcl.Overrides
If you would like to override any of the defaults provided here without committing any changes to git, you can use the
overrides.auto.pkrvars.hclfile, which is ignored by source control.For example, if you want your AMI to have a smaller root block device, you can override the default value of 30 GB like this:
Additional Packages
Any rpm package placed into the additional-packages/ directory will be uploaded to the instance and installed.
NOTE: All packages must end with extension
"$(uname -m).rpm", ie.x86_64.rpmor.aarch64.rpm.ECS Logs Collector
The ECS logs collector is a shell script that helps gather diagnostic information for troubleshooting ECS-related issues. This script is automatically installed on all ECS-optimized AMIs built with this recipe.
Installation Details
The ECS logs collector is installed during the AMI build process with the following characteristics:
/opt/amazon/ecs/ecs-logs-collector.sh/opt/amazon/ecs/ECS_LOGS_COLLECTOR_VERSIONcontaining the git commit hash./amazon-ecs-logs-collector/Cleanup
IAM Permissions
For details on the minimum IAM permissions required to build the AMI, please see the packer docs: https://www.packer.io/docs/builders/amazon#iam-task-or-instance-role
Version-locked packages in AL2023 ECS GPU AMIs
Certain packages are critical for correct, performant behavior of GPU functionality in AL2023 ECS GPU AMIs. These include: - NVIDIA drivers (
nvidia*) - Kernel modules (kmod*) - NVIDIA libraries (libnvidia*) - Kernel packages (kernel*)These packages are version-locked to ensure stability and prevent unintentional changes that could disrupt GPU workloads. As a result, these packages should generally be modified within the bounds of a managed process that gracefully handles potential issues and maintains GPU functionality.
To prevent unintended modifications, the
dnf versionlockplugin is used on these packages.If you wish to modify a locked package, you can:
Memory Overcommit Fix for g6f.large instance type
g6f.largeinstances require memory overcommit configuration to run ECS tasks with NVIDIA GPU support. Add this to your EC2 UserData or run directly on the instance:Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.