Mac实例价格

Mac实例的价格在AWS EC2页面上找不到, https://aws.amazon.com/ec2/pricing/on-demand/

查看Mac实例的官方页面: https://aws.amazon.com/cn/ec2/instance-types/mac/

它属于dedicated host, 需要在decicated host(https://aws.amazon.com/cn/ec2/dedicated-hosts/pricing/)的页面查看价格:

image-20240619223444576

image-20240619223613099

https://repost.aws/zh-Hans/questions/QUIU1iQmo1SJG8NIxA0bKJ8w/how-does-the-billing-system-work-for-macos-instances-in-cloud-services-is-it-possible-to-pay-on-an-hourly-basis-or-are-there-other-pricing-models-available 解释的很清楚:

 Pricing Model: - Dedicated Hosts: macOS instances on EC2 run on Dedicated Hosts. This means you pay for the whole physical host, not just for the virtual instances you run on it. The billing is on a per-host basis.

也就是说Mac实例跑在dedicated host上,收的是dedicated host的钱,这也解释了为什么执行命令获取到的价格是0:

aws pricing get-products --service-code AmazonEC2 --filters "Type=TERM_MATCH,Field=instanceType,Value=mac2.metal" --format-version aws_v1 --output json  --region us-east-1| jq

{
  "PriceList": [
    "{\"product\":{\"productFamily\":\"Compute Instance (bare metal)\",\"attributes\":{\"enhancedNetworkingSupported\":\"Yes\",\"intelTurboAvailable\":\"Yes\",\"memory\":\"16 GiB\",\"dedicatedEbsThroughput\":\"1000 Mbps\",\"vcpu\":\"12\",\"classicnetworkingsupport\":\"false\",\"capacitystatus\":\"Used\",\"locationType\":\"AWS Region\",\"storage\":\"EBS only\",\"instanceFamily\":\"General purpose\",\"operatingSystem\":\"Linux\",\"intelAvx2Available\":\"No\",\"regionCode\":\"us-west-2\",\"physicalProcessor\":\"Apple M1 chip with 8-core CPU, 8-core GPU, and 16-core Neural Engine\",\"clockSpeed\":\"3.2 GHz\",\"ecu\":\"NA\",\"networkPerformance\":\"NA\",\"servicename\":\"Amazon Elastic Compute Cloud\",\"gpuMemory\":\"NA\",\"vpcnetworkingsupport\":\"true\",\"instanceType\":\"mac2.metal\",\"tenancy\":\"Host\",\"usagetype\":\"USW2-HostBoxUsage:mac2.metal\",\"normalizationSizeFactor\":\"24\",\"intelAvxAvailable\":\"No\",\"servicecode\":\"AmazonEC2\",\"licenseModel\":\"No License required\",\"currentGeneration\":\"Yes\",\"preInstalledSw\":\"NA\",\"location\":\"US West (Oregon)\",\"processorArchitecture\":\"64-bit\",\"marketoption\":\"OnDemand\",\"operation\":\"RunInstances\",\"availabilityzone\":\"NA\"},\"sku\":\"7GVTEVRQEUQGVY34\"},\"serviceCode\":\"AmazonEC2\",\"terms\":{\"OnDemand\":{\"7GVTEVRQEUQGVY34.JRTCKXETXF\":{\"priceDimensions\":{\"7GVTEVRQEUQGVY34.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"$0.00 per Linux mac2.metal Dedicated Host Instance hour\",\"appliesTo\":[],\"rateCode\":\"7GVTEVRQEUQGVY34.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0000000000\"}}},\"sku\":\"7GVTEVRQEUQGVY34\",\"effectiveDate\":\"2024-06-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20240619074100\",\"publicationDate\":\"2024-06-19T07:41:00Z\"}",

另外一种方式是在vantage.sh上看:

https://instances.vantage.sh/aws/ec2/mac2.metal

image-20240619222321592