Closed ParthaI closed 3 months ago
Note: If a Service Control Policy is applied to an account for a specific region, we should receive an access denied error, not an invalid memory address or nil pointer dereference error.
Note: If a Service Control Policy is applied to an account for a specific region, we should receive an access denied error, not an invalid memory address or nil pointer dereference error.
Integration test logs
Logs
``` N/A ```Example query results
Results
``` Before fix: Error: rpc error: code = Internal desc = aws_org_1: rpc error: code = Internal desc = hydrate function listVpcEips failed with panic runtime error: invalid memory address or nil pointer dereference (SQLSTATE HV000) +---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------> | allocation_id | arn | public_ip | public_ipv4_pool | domain | association_id | carrier_ip | customer_owned_ip | customer_owned_ipv4_pool | instance_id | network_border_group | network_interface_id | network_interface_owner_id | priva> +---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------> +---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------> After fix: > select * from aws_org_1.aws_vpc_eip Error: aws_org_1: operation error EC2: DescribeAddresses, https response error StatusCode: 401, RequestID: 410dc0a8-bb56-4a47-b077-d140e70c9feb, api error AuthFailure: AWS was not able to validate the provided access credentials (SQLSTATE HV000) +---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------> | allocation_id | arn | public_ip | public_ipv4_pool | domain | association_id | carrier_ip | customer_owned_ip | customer_owned_ipv4_pool | instance_id | network_border_group | network_interface_id | network_interface_owner_id | priva> +---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------> +---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------ ```