Giter Club home page Giter Club logo

amazon-ecs-ami's Introduction

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

  1. Setup AWS cli credentials.
  2. Make the recipe that you want, REGION must be specified. Options are: al1, al2, al2arm, al2gpu, al2inf, al2kernel5dot10, al2kernel5dot10arm, al2023, al2023arm, al2023neu.
REGION=us-west-2 make al2

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.hcl or ./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.hcl file, 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:

export REGION=us-west-2
echo "block_device_size_gb = 8" > ./overrides.auto.pkrvars.hcl
make al2

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.rpm or .aarch64.rpm.

Cleanup

  1. Deregister the AMI from EC2 Images via cli or console.
  2. Delete the snapshot from EC2 EBS via cli or console.

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

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

amazon-ecs-ami's People

Contributors

sparrc avatar realmonia avatar ubhattacharjya avatar singholt avatar mythri-garaga avatar yinyic avatar fierlion avatar chienhanlin avatar prateekchaudhry avatar yashdalfthegray avatar mye956 avatar danehlim avatar amogh09 avatar amazon-auto avatar angelcar avatar lydiafilipe avatar mssrivas avatar sreees avatar shubham2892 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.