{"id":43985179,"url":"https://github.com/veertuinc/aws-ec2-mac-amis","last_synced_at":"2026-02-07T09:34:36.004Z","repository":{"id":45460210,"uuid":"319993776","full_name":"veertuinc/aws-ec2-mac-amis","owner":"veertuinc","description":"Repository storing all of our scripts used for the Anka Community and Marketplace AMIs automation.","archived":false,"fork":false,"pushed_at":"2026-01-20T19:01:54.000Z","size":227,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-20T22:49:27.520Z","etag":null,"topics":["anka","automation","aws","aws-ec2","bash","ec2","macos"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veertuinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-09T15:10:45.000Z","updated_at":"2026-01-20T19:01:58.000Z","dependencies_parsed_at":"2024-01-24T23:29:45.645Z","dependency_job_id":"f73d6c5c-85c7-437c-8141-586756e9795b","html_url":"https://github.com/veertuinc/aws-ec2-mac-amis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/veertuinc/aws-ec2-mac-amis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veertuinc%2Faws-ec2-mac-amis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veertuinc%2Faws-ec2-mac-amis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veertuinc%2Faws-ec2-mac-amis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veertuinc%2Faws-ec2-mac-amis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veertuinc","download_url":"https://codeload.github.com/veertuinc/aws-ec2-mac-amis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veertuinc%2Faws-ec2-mac-amis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["anka","automation","aws","aws-ec2","bash","ec2","macos"],"created_at":"2026-02-07T09:34:35.333Z","updated_at":"2026-02-07T09:34:35.999Z","avatar_url":"https://github.com/veertuinc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Veertu's AWS EC2 AMI Prep Scripts\n\nAll AMIs are built from the default AWS AMIs.\n\n\u003e The macOS AMI is an EBS-backed, AWS-supported image. This AMI includes the AWS Command Line Interface, Command Line Tools for Xcode, Amazon SSM Agent, and Homebrew. The AWS Homebrew Tap includes the latest versions of multiple AWS packages included in the AMI.\n\u003e\n\u003e Root device type: ebs | Virtualization type: hvm | ENA Enabled: Yes\n\nWhat we add, regardless of macOS version:\n\n- [`anka virtualization`](https://veertu.com/anka-build/)\n- [`jq`](https://formulae.brew.sh/formula/jq) : Lightweight and flexible command-line JSON processor\n- `ll` alias to `ls -laht`\n\n## Prepare an AMI\n\nThe official Veertu AMIs in AWS have these steps already performed inside of them:\n\n- **ALWAYS USE `unset HISTFILE;` at the end of commands**\n\n1. `cd /Users/ec2-user \u0026\u0026 git clone https://github.com/veertuinc/aws-ec2-mac-amis.git \u0026\u0026 cd aws-ec2-mac-amis \u0026\u0026 ANKA_LICENSE=\"skip\" ./$(sw_vers | grep ProductVersion | cut -d: -f2 | xargs)/prepare.bash; unset HISTFILE`\n1. Resizing of the disk may take a while. The instance may seem stuck, so be patient and only create the AMI once it's done (check `/var/log/resize-disk.log` to confirm) \u003c!-- 1. You now need to VNC in once (requirement for Anka to have necessary services): `open vnc://ec2-user:{GENERATEDPASSWORD}@{INSTANCEPUBLICIP}` // DOESN'T SEEM NECESSARY AND HAVING VNC ON BY DEFAULT IS RISKY --\u003e\n1. Test `anka create` using generate getting-started scripts + delete VM it creates after starting and running command inside\n1. Ensure cloud connect service works with user-data\n1. Restart without user-data\n1. As user **AND** root (only if you're going to make the AMI public):\n    ```bash\n    anka registry delete --all;\n    anka delete --yes --all;\n    echo \"\" | tee /Library/Logs/Anka/anka.log; \n    echo \"\" | tee /var/log/cloud-connect.log;\n    echo \"\" | tee /var/log/resize-disk.log; \n    rm -f ~/.ssh/authorized_keys; \n    rm -f ~/.*_history; \n    history -p;\n    rm -rf /tmp/anka-mac-resources; \n    rm -rf /Applications/Install*;\n    rm -rf ~/.zsh_*;\n    find \"$(anka config img_lib_dir)\" -mindepth 1 -delete;\n    find \"$(anka config state_lib_dir)\" -mindepth 1 -delete;\n    find \"$(anka config vm_lib_dir)\" -mindepth 1 -delete;\n    unset HISTFILE;\n    ```\n1. Remove license `sudo anka license remove`\n\nThis should install everything you need (the script is idempotent). You can then sanity check and then save the AMI.\n\n## Logs\n\n- `/var/log/resize-disk.log`\n- `/var/log/cloud-connect.log`\n\n## Usage of AMI\n\n[Please see the documentaion!](https://docs.veertu.com/anka/intel/getting-started/aws-ec2-mac/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveertuinc%2Faws-ec2-mac-amis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveertuinc%2Faws-ec2-mac-amis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveertuinc%2Faws-ec2-mac-amis/lists"}