无法启动 ec2 实例 "Launch Failed"

Unable to launch ec2 instance "Launch Failed"

我正在尝试从 AWS 市场启动 FortiGate c5.xlarge 实例。我不断收到以下信息。

Launch Failed

{
    "clientToken": "164876650066515092",
    "awsAccountId": "008420932876",
    "agreementId": null,
    "agreementRequired": true,
    "autoRoleCreationRequired": false,
    "instanceActionName": "RunInstances",
    "errorCode": "NeedsEntitlementCheck_InvalidParameterException",
    "errorMessage": "A non-retryable exception was thrown because of an invalid input for product e5126f4a-0d69-479f-919c-d5e158bd4d12, region us-east-1, amiId ami-065f5f3d485c1ec3f",
    "workflowStatus": "LAUNCH_FAILED",
    "productId": "e5936f4a-0d69-479f-919c-d5e158bd4d12",
    "isWorkflowExecutionFailed": false,
    "describeAgreementStepResult": null,
    "entitlementStatus": {
        "hasEntitlementCreatedInIAD": null,
        "hasExistingRegionalEntitlement": null,
        "hasNewEntitlementPropagated": null
    },
    "workflowStartTime": null
}

我浏览了这篇文章,它似乎不是以下任何消息。

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-launch-issue/

还检查了 us-east-1 是否支持 c5.xlarge。有人能指出我正确的方向吗?

所以我最终使用 AWS CLI 命令解决了这个问题。

aws ec2 run-instances --image-id ami-065f5f3d485c1ec3f --count 1 --instance-type c5.xlarge --key-name fortigate-aws --security-group-ids sg-019b89b5dd233cdae --subnet-id subnet-0457dda8b55b5bb10 --private-ip-address 10.9.0.4

工作得很好。不确定为什么它在市场上不起作用。