{"id":30120252,"url":"https://github.com/stakater/ami-baker","last_synced_at":"2025-08-10T12:55:05.792Z","repository":{"id":43129609,"uuid":"63861678","full_name":"stakater/ami-baker","owner":"stakater","description":"Build custom AMI (Amazon Machine Image) on top of CoreOS","archived":false,"fork":false,"pushed_at":"2017-06-09T05:54:57.000Z","size":35,"stargazers_count":11,"open_issues_count":7,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-15T04:16:09.169Z","etag":null,"topics":["ami","docker","packer"],"latest_commit_sha":null,"homepage":"http://www.stakater.com","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stakater.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-21T10:52:46.000Z","updated_at":"2022-07-13T03:56:57.000Z","dependencies_parsed_at":"2022-09-22T06:33:09.270Z","dependency_job_id":null,"html_url":"https://github.com/stakater/ami-baker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stakater/ami-baker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fami-baker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fami-baker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fami-baker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fami-baker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stakater","download_url":"https://codeload.github.com/stakater/ami-baker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakater%2Fami-baker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269727090,"owners_count":24465398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ami","docker","packer"],"created_at":"2025-08-10T12:54:11.134Z","updated_at":"2025-08-10T12:55:05.784Z","avatar_url":"https://github.com/stakater.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AMI-baker\nAMI-Baker is a tool to create a Core OS based AMI which runs a docker based application.\n\n\n### AWS Setup:\nAWS access is required in order to create an AMI.\nAs we use packer, packer has four methods of providing AWS credentials (more details at https://www.packer.io/docs/builders/amazon.html#_aws_credentials).\n\nYou can use the method that requires environmental variables to be set up or the one which requires a `~/.aws/credentials` file to be present, or run it on an EC2 instance which has an IAM role attached which is allowed to create instances, snapshots and AMIs.\nPlease refer to the given link for details.\n\n\n### How to run\nTo build your Core OS based AMI, you need to run the script `bake-ami.sh`.\n\nThe parameters for the script are as follows:\n\n###### -r `\u003cAWS Region\u003e` (required)\nThe AWS region in which the AMI is to be created.\n\n###### -n `\u003cName of the AMI\u003e` (required)\nThe name of the AMI to be created.\n\n###### -d `\u003cName of the Docker image\u003e` (required)\nName of the docker image of your application which will be used to create a systemd unit, in order to run your application on Core OS.\n\n###### -o `\u003cDocker options\u003e` (optional)\nDocker options used with the docker run command in order to run your application.\n\n###### -i `\u003cInstance Type\u003e` (optional)\nInstance type to be specified in the AMI, it defaults to `t2.medium`\n\n###### -v `\u003cVPC ID\u003e` (optional)\nThe VPC in which packer will create a base instance in order to create an AMI.\nSpecify if you do not want to use default VPC.\n\n###### -s `\u003cSUBNET ID\u003e` (optional)\nThe subnet in which packer will create a base instance in order to create an AMI.\nSpecify if you do not want to use default VPC.\n\n###### -g `\u003cDocker registry certificates path\u003e` (optional)\nComplete path to folder where docker registry certificates are placed.\nIt will usually be like `/etc/docker/certs.d/\u003cregistry-host\u003e:\u003cregistry-port\u003e`\n\n\nExample:\n```\n./bake-ami.sh -r us-east-1 -n myAmi -d hello-world\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakater%2Fami-baker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstakater%2Fami-baker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakater%2Fami-baker/lists"}