trailofbits/algo

AWS Lightsail doesn't have `nano_2_0` size for Stockholm region

N0xFF opened this issue · 0 comments

N0xFF commented

AWS Lightsail doesn't have nano_2_0 size for Stockholm region (eu-north-1):

"log": ["AWS::Lightsail::Instance Instance CREATE_FAILED: Resource handler returned message: "The specified bundle does not exist in this region: nano_2_0 (Service: Lightsail, Status Code: 400, Request ID: e609e079-2f50-4a53-8af3-623918b28a01, Extended Request ID: null)" (RequestToken: 74697ca1-3a37-876f-850e-8430b1425758, HandlerErrorCode: NotFound)"]

Logs
TASK [cloud-lightsail : Set the default region] **********************************************************************************ok: [localhost]
[cloud-lightsail : pause]
What region should the server be located in?
(https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/)
    1.  ap-northeast-1       Tokyo
    2.  ap-northeast-2       Seoul
    3.  ap-south-1           Mumbai
    4.  ap-southeast-1       Singapore
    5.  ap-southeast-2       Sydney
    6.  ca-central-1         Montreal
    7.  eu-central-1         Frankfurt
    8.  eu-north-1           Stockholm
    9.  eu-west-1            Ireland
    10. eu-west-2            London
    11. eu-west-3            Paris
    12. us-east-1            Virginia
    13. us-east-2            Ohio
    14. us-west-2            Oregon

Enter the number of your desired region
[12]
:
8
TASK [cloud-lightsail : pause] ***************************************************************************************************ok: [localhost]

TASK [cloud-lightsail : set_fact] ************************************************************************************************ok: [localhost]

TASK [cloud-lightsail : Deploy the template] *************************************************************************************fatal: [localhost]: FAILED! => {"changed": true, "events": ["StackEvent AWS::CloudFormation::Stack algo ROLLBACK_COMPLETE", "StackEvent AWS::Lightsail::Instance Instance DELETE_COMPLETE", "StackEvent AWS::CloudFormation::Stack algo ROLLBACK_IN_PROGRESS", "StackEvent AWS::Lightsail::Instance Instance CREATE_FAILED", "StackEvent AWS::Lightsail::Instance Instance CREATE_IN_PROGRESS", "StackEvent AWS::CloudFormation::Stack algo CREATE_IN_PROGRESS"], "log": ["AWS::Lightsail::Instance Instance CREATE_FAILED: Resource handler returned message: \"The specified bundle does not exist in this region: nano_2_0 (Service: Lightsail, Status Code: 400, Request ID: e609e079-2f50-4a53-8af3-623918b28a01, Extended Request ID: null)\" (RequestToken: 74697ca1-3a37-876f-850e-8430b1425758, HandlerErrorCode: NotFound)"], "output": "Problem with CREATE. Rollback complete", "stack_outputs": {}, "stack_resources": [{"last_updated_time": "2022-03-09T15:55:28.929000+00:00", "logical_resource_id": "Instance", "physical_resource_id": "", "resource_type": "AWS::Lightsail::Instance", "status": "DELETE_COMPLETE", "status_reason": null}]}

TASK [include_tasks] *************************************************************************************************************included: /home/virtual/algo/playbooks/rescue.yml for localhost

TASK [debug] *********************************************************************************************************************ok: [localhost] => {
    "fail_hint": [
        "Sorry, but something went wrong!",
        "Please check the troubleshooting guide.",
        "https://trailofbits.github.io/algo/troubleshooting.html"
    ]
}

TASK [Fail the installation] *****************************************************************************************************fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}

Actual size is nano_2_3.

But I don't think we can just change default value:

algo/config.cfg

Lines 194 to 195 in 9f241b1

lightsail:
size: nano_2_0

With nano_2_3 at least Frankfurt (eu-central-1) doesn't work:

"log": ["AWS::Lightsail::Instance Instance CREATE_FAILED: Resource handler returned message: "The specified bundle does not exist in this region: nano_2_3 (Service: Lightsail, Status Code: 400, Request ID: bb905a69-fa77-448c-ba9b-965db40cec5e, Extended Request ID: null)" (RequestToken: 8c67ae83-efef-5166-9724-65ae382cf35b, HandlerErrorCode: NotFound)"]

Logs
TASK [cloud-lightsail : Set the default region] **********************************************************************************ok: [localhost]
[cloud-lightsail : pause]
What region should the server be located in?
(https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/)
    1.  ap-northeast-1       Tokyo
    2.  ap-northeast-2       Seoul
    3.  ap-south-1           Mumbai
    4.  ap-southeast-1       Singapore
    5.  ap-southeast-2       Sydney
    6.  ca-central-1         Montreal
    7.  eu-central-1         Frankfurt
    8.  eu-north-1           Stockholm
    9.  eu-west-1            Ireland
    10. eu-west-2            London
    11. eu-west-3            Paris
    12. us-east-1            Virginia
    13. us-east-2            Ohio
    14. us-west-2            Oregon

Enter the number of your desired region
[12]
:
7
TASK [cloud-lightsail : pause] ***************************************************************************************************ok: [localhost]

TASK [cloud-lightsail : set_fact] ************************************************************************************************ok: [localhost]

TASK [cloud-lightsail : Deploy the template] *************************************************************************************fatal: [localhost]: FAILED! => {"changed": true, "events": ["StackEvent AWS::CloudFormation::Stack algo ROLLBACK_COMPLETE", "StackEvent AWS::Lightsail::Instance Instance DELETE_COMPLETE", "StackEvent AWS::CloudFormation::Stack algo ROLLBACK_IN_PROGRESS", "StackEvent AWS::Lightsail::Instance Instance CREATE_FAILED", "StackEvent AWS::Lightsail::Instance Instance CREATE_IN_PROGRESS", "StackEvent AWS::CloudFormation::Stack algo CREATE_IN_PROGRESS"], "log": ["AWS::Lightsail::Instance Instance CREATE_FAILED: Resource handler returned message: \"The specified bundle does not exist in this region: nano_2_3 (Service: Lightsail, Status Code: 400, Request ID: bb905a69-fa77-448c-ba9b-965db40cec5e, Extended Request ID: null)\" (RequestToken: 8c67ae83-efef-5166-9724-65ae382cf35b, HandlerErrorCode: NotFound)"], "output": "Problem with CREATE. Rollback complete", "stack_outputs": {}, "stack_resources": [{"last_updated_time": "2022-03-09T16:20:13.431000+00:00", "logical_resource_id": "Instance", "physical_resource_id": "", "resource_type": "AWS::Lightsail::Instance", "status": "DELETE_COMPLETE", "status_reason": null}]}

TASK [include_tasks] *************************************************************************************************************included: /home/virtual/algo/playbooks/rescue.yml for localhost

TASK [debug] *********************************************************************************************************************ok: [localhost] => {
    "fail_hint": [
        "Sorry, but something went wrong!",
        "Please check the troubleshooting guide.",
        "https://trailofbits.github.io/algo/troubleshooting.html"
    ]
}

TASK [Fail the installation] *****************************************************************************************************fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}