Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed aws_vpc_eip produce nil pointer error Closes #2124 #2136

Merged
merged 1 commit into from Mar 20, 2024

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Mar 19, 2024

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>
+---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------>
+---------------+-----+-----------+------------------+--------+----------------+------------+-------------------+--------------------------+-------------+----------------------+----------------------+----------------------------+------

@ParthaI ParthaI self-assigned this Mar 19, 2024
@ParthaI ParthaI linked an issue Mar 19, 2024 that may be closed by this pull request
@bigdatasourav bigdatasourav merged commit 3fae394 into main Mar 20, 2024
1 check passed
@bigdatasourav bigdatasourav deleted the issue-2124 branch March 20, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_vpc_eip produce nil pointer error
2 participants