Add Devin Outpost Mac worker (EC2 dedicated host) Terraform - #20
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Add Devin Outpost Mac worker (EC2 dedicated host) Terraform#20devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Terraform (+ a bootstrap script) to stand up a single Apple-silicon Mac EC2 instance and run it as a Devin Outpost worker — the worker opens an outbound-only connection to Devin Cloud, claims queued sessions for the outpost, and executes them locally on the Mac (useful for macOS/iOS builds & tests). New self-contained env under
terraform/environments/devin-outpost-mac/.What it provisions (account
599083837640,us-east-2, default VPC):aws_ec2_host— a Dedicated Host (required for all Mac instances)aws_instance—mac2-m2.metal(Apple M2, 8 vCPU / 24 GiB) on the host, latest Amazon macOS AMI (arm64_mac, resolved viadata.aws_ami)aws_security_group— SSH in / all out;tls_private_key+aws_key_pair(PEM written locally, git-ignored)Worker configuration (
bootstrap-worker.sh, run on the Mac):Non-obvious decisions worth calling out:
mac2-m2(M2), notmac2(M1).mac2.metal(the cheapest) had no capacity in anyus-east-2AZ at provisioning time (InsufficientHostCapacity).mac2-m2is the smallest type with capacity, at ~the same price.gui/<uid>is unreachable, so a user LaunchAgent fails to bootstrap). The daemon runs asec2-user. Caveat documented in the README: browser/computer-use and screen-recording need a logged-in window-server session (enable auto-login if required); plain build/test/repo work does not.devin setupprompt — the worker authenticates via the outpost token, not a login.AWS Mac Dedicated Hosts have a mandatory 24-hour minimum allocation — a host cannot be released (and keeps billing,
mac2-m2≈ $0.65/hr ≈ $15.60/24h) until 24h after allocation, even if youterraform destroysooner (the host-release step will fail until the window passes; re-run after 24h). There is no capacity-only dry-run forAllocateHosts, so probing capacity allocates real hosts — see README guidance on switching type/AZ when a host create retries indefinitely.No secrets are committed (token/PEM are supplied at runtime / git-ignored).
Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/b7a2b09a715c426fb51a8103221afd49
Requested by: @bsmitches