News for hackers. Stuff that matters.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by jedberg on Monday December 28, 2020 @01:09PM (#25561457)
One of the rules on these Macs in AWS is that you have to rent them for a minimum of 24 hours at a time and you have to rent the whole machine.

I think they don't want to cannibalize Mac sales. If you want to make an iPhone app, you have to buy a Mac to do it. They don't want to make it easy for you to rent one just to compile the app.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by jjeaff on Monday December 28, 2020 @01:16PM (#25561522)
That's the only reason I need them, to compile a binary and submit it. But can apple dictate licensing terms like this? If aws buys a mac, can't they use it however they like? Or are there terms limiting this in the purchase agreement.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by watermelon0 on Monday December 28, 2020 @01:59PM (#25562046)
It's in Apple's EULA: https://blog.macstadium.com/blog/developers-big-sur-and-vind...

> A "lease period must be for a minimum period of twenty-four (24) consecutive hours."

Re:How AWS Added Apple Mac Mini Nodes to EC2 by gambiting on Monday December 28, 2020 @02:19PM (#25562252)
Why not set up the servers in EU where likely this is non enforceable? If you bought a Mac mini you bought it, apple cannot tell you if you can/cannot lease it out. Imagine if Mercedes was trying to tell you that you can only rent your car(which you paid for) for a minimum of 7 days or something equally stupid. It's insane.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by kbenson on Monday December 28, 2020 @02:49PM (#25562525)
That might be entirely unenforceable in the U.S. as well, but I doubt most companies are clamoring to go up against Apple's lawyers to prove it, and those that might (Amazon, Google, Microsoft) so they could include it in their offerings might have to worry about Apple throwing even more resources at the case to make it extremely unprofitable to do so, and also that Apple might specifically do stuff to make it harder afterwards for that company. That applies equally as well to companies in the EU.

I'm not sure if it's accurate, but I and many others see Apple as a fairly vindictive company, from stories about how Jobs operated to how they treat developers that speak out. My impression is that it's part of their DNA now.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by nojito on Monday December 28, 2020 @06:13PM (#25564454)
The reason why it’s enforceable was because of psystar.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by _hl_ on Monday December 28, 2020 @02:47PM (#25562509)
I don't know about relevant EU law here, but even if Apple's terms are not enforceable in the EU, when you sell to e.g. US customers you would be subject to US law anyway, and Apple could go after you in the US. It doesn't matter that the servers are located in the EU.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by est31 on Monday December 28, 2020 @07:33PM (#25565137)
In addition to legal barriers there are also technical ones. You have to run a scrub job to delete all data by prior tenants on a change of tenants. That job neccessarily has to overwrite the entire SSD and thus adds both wear to the device as well as takes time (around 30-60 minutes according to [0]). The SSD is soldered onto the PCB so it would be hard to replace it with something virtualized (or smaller that'd take less time to overwrite).

[0]: https://news.ycombinator.com/item?id=25562532

So you won't be able to rent out one device to dozens of tenants per day who each use it for ten minutes or so while ensuring inter-tenant isolation.

Last, those Apple rules might as well be non-enforceable legally, but Apple might still retaliate by e.g. removing apps from their store that were uploaded by tenants of those EU companies.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by fomine3 on Monday December 28, 2020 @09:09PM (#25565877)
Theoretically you don't need scrub entire disk but just drop FDE encryption key in < 1s
Re:How AWS Added Apple Mac Mini Nodes to EC2 by scarface74 on Monday December 28, 2020 @05:41PM (#25564125)
Setting up servers in the EU and using them in the US would introduce a ton of latency.

Besides that, I forgot where it came out about the amount of money Amazon retail makes on it’s dedicated Apple store. Also, Apple and Amazon Video have special deals where you can do in app purchases of video within the app on iOS devices and the purchases are charged directly to your Prime account. No one else can do that for physical goods.

Apple and Amazon have been chummy since Jobs licensed the “one click patent” when the iTunes Music Store opened in 2003.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by supernova87a on Monday December 28, 2020 @02:05PM (#25562101)
"...But can apple dictate licensing terms like this? If aws buys a mac, can't they use it however they like? Or are there terms limiting this in the purchase agreement..."

Yes, no, and yes.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by dnate on Monday December 28, 2020 @02:36PM (#25562415)
what about buying second hand macs? I am not agreeing to any terms there, how can apple still enforce those rules then?
Re:How AWS Added Apple Mac Mini Nodes to EC2 by supernova87a on Monday December 28, 2020 @02:47PM (#25562507)
It's not the hardware that's restricted, it's the MacOS usage/license. You agree to that when you install it.

Apple can't practically enforce that against you, an individual using a mac in your home. But then again you're probably not reselling your mac's functionality directly for profit to others. They for sure can seek to enforce it with AWS or others who sell it commercially. It's the reselling of their software and functionality for profit that is covered by the terms of the agreement.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by est31 on Monday December 28, 2020 @01:34PM (#25561744)
I agree that what you want to do should be possible and cheap, but generally if you build something for a platform you'd also want to test it on that platform, no? What you say implies that you compile the binary and don't test it before submitting?
Re:How AWS Added Apple Mac Mini Nodes to EC2 by lukeramsden on Monday December 28, 2020 @01:52PM (#25561967)
Automated testing should be done at CI stage, and you can submit a binary to Apple without having to send it live on the AppStore (TestFlight is for that), or you could send it to other beta distribution channels
Re:How AWS Added Apple Mac Mini Nodes to EC2 by lock-free on Monday December 28, 2020 @02:06PM (#25562110)
This works until you have a bug you can't replicate on a developer machine that your CI misses. This is a common thread on open source projects:

> issue opened October 2013

> __ is broken on MacOS

> __ should fix it but I don't have a Mac to test.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by lloeki on Monday December 28, 2020 @03:45PM (#25563024)
An alternative version of the last step:

> I do have a Mac but ___ can’t be replicated on my specific dev-tainted environment, plus I’m using macOS Y and you use macOS Z which is a pain for me to set up a VM for, if at all possible.

The raise of a few free macOS CI mitigated that a bit but the offer is honestly poor (except at CircleCI, props to them), and seems like Apple could care less so much they’re now actively making that harder than ever.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by lock-free on Monday December 28, 2020 @05:19PM (#25563925)
> I’m using macOS Y and you use macOS Z which is a pain for me to set up a VM for, if at all possible

If Apple should be sued for anti-consumer behavior this is why... It costs time and money to fix software with every MacOS release and I'm getting close to suggesting we add a 50% Apple tax on products to pay for the additional support it entails.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by scarface74 on Monday December 28, 2020 @05:43PM (#25564141)
He said it was a pain. Not that it can’t be done. If you are running on a Mac, you can set up a VM for an older version of MacOS on it. It’s allowed in the EULA.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by lloeki on Tuesday December 29, 2020 @05:51AM (#25568613)
Precisely.

As a matter of fact I went through the trouble to set up 10.9 through 10.14 in VirtualBox, driven by gitlab-runner via the virtualbox executor[0] (which is pure genius: it uses linked VM clones from a reference VM to spawn parallel runners, as well as using snapshots once SSH is ready after first boot for <2s spawn + full state reset).

Given the painful macOS on VirtualBox situation, at the time I wanted to move to VMware Fusion[1] but lacked time to implement an executor. It seems someone took that in their own hands and implemented a specific runner (in Swift!).

[0]: https://docs.gitlab.com/runner/executors/virtualbox.html

[1]: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1679

[2]: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/1679#no...

Re:How AWS Added Apple Mac Mini Nodes to EC2 by jjeaff on Monday December 28, 2020 @06:23PM (#25564541)
I have an iPhone for testing mobile apps. I only need MacOS for the building and submitting.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by est31 on Monday December 28, 2020 @07:15PM (#25565007)
Phones/tablets are a good point, haven't thought of that.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by jedberg on Monday December 28, 2020 @01:39PM (#25561810)
AWS can use the Mac any way it wants, but the license terms are part of MacOS.
Re:How AWS Added Apple Mac Mini Nodes to EC2 by kayodelycaon on Monday December 28, 2020 @01:22PM (#25561587)
Can Microsoft dictate the terms under which you can use their software?

Some companies only charge for commercial use of their products. So the “it’s free” argument doesn’t really hold water.

Re:How AWS Added Apple Mac Mini Nodes to EC2 by scarface74 on Monday December 28, 2020 @05:46PM (#25564175)
Yes. Software companies dictate whether their software has to be run on a dedicate host, the allowed number of cores, etc. all of the time.

Companies have tried to “rent DVDs” digitally by playing the DVD on their hardware and streaming it. It got shot down by the courts.