Skip to content

[BUG] Terrafrom error content not detected in API #1367

@cichyx96

Description

@cichyx96

While I was provisioning AR in AWS I got an error which is not relevant to this issue. I have noticed in docker compose logs that error output was not detected, even though it's clearly visible just above.

attack-range-api  | module.networkModule.module.vpc.aws_route.private_nat_gateway[0]: Creating...
attack-range-api  | module.networkModule.module.vpc.aws_route.private_nat_gateway[0]: Creation complete after 0s [id=r-rtb-05f56bcf1b19b2a1e1080289494]
attack-range-api  | ╷
attack-range-api  | │ Error: creating EC2 Instance: operation error EC2: RunInstances, https response error StatusCode: 400, RequestID: 5bb8253a-6c75-419f-bf48-a4b4529a2cf3, api error PendingVerification: Your request for accessing resources in this region is being validated, and you will not be able to launch additional resources in this region until the validation is complete. We will notify you by email once your request has been validated. While normally resolved within minutes, please allow up to 4 hours for this process to complete. If the issue still persists, then open a support case. [https://support.console.aws.amazon.com/support/home?region=us-east-1#/case/create?issueType=customer-service&serviceCode=account-management&categoryCode=account-verification]
attack-range-api  | │ 
attack-range-api  | │   with module.attack_range_servers["splunk"].aws_instance.this,
attack-range-api  | │   on modules/generic-server/resources.tf line 28, in resource "aws_instance" "this":
attack-range-api  | │   28: resource "aws_instance" "this" {
attack-range-api  | │ 
attack-range-api  | ╵
attack-range-api  | 2026-02-11 09:29:15,602 - ERROR - attack_range - Terraform apply failed!
attack-range-api  | 2026-02-11 09:29:15,602 - ERROR - attack_range - No error output from terraform (return code != 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions