When I tried to execute lf_utils.get_role_arn, I received below error message. But in assignment, it was mentioned that databases were created.
ERROR:root:Error details: Traceback (most recent call last):
File “/home/coder/project/scripts/lf_utils.py”, line 86, in grant_database_access
response_grant_permissions = lf_client.grant_permissions(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/coder/miniconda/lib/python3.11/site-packages/botocore/client.py”, line 553, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/coder/miniconda/lib/python3.11/site-packages/botocore/client.py”, line 1009, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidInputException: An error occurred (InvalidInputException) when calling the GrantPermissions operation: Database not found.
An error occurred (InvalidInputException) when calling the GrantPermissions operation: Database not found.
ERROR:root:Couldn’t grant curated_zone access: arn:aws:iam::891377191847:role/de-c3w2a1-glue-role
ERROR:root:Error details: Traceback (most recent call last):
File “/home/coder/project/scripts/lf_utils.py”, line 86, in grant_database_access
response_grant_permissions = lf_client.grant_permissions(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/coder/miniconda/lib/python3.11/site-packages/botocore/client.py”, line 553, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/coder/miniconda/lib/python3.11/site-packages/botocore/client.py”, line 1009, in _make_api_call
raise error_class(parsed_response, operation_name)
…
An error occurred (InvalidInputException) when calling the GrantPermissions operation: Database not found.
ERROR:root:Couldn’t grant presentation_zone access: arn:aws:iam::891377191847:role/de-c3w2a1-glue-role