â08-25-2022 11:20 AM
I've seen many posts here in the Community as potential solutions to this error, but none seem to be a solution for us. We are trying to launch the 14 day free trial of Databricks from the AWS Marketplace and are getting the error below. Moreover, our partner manager at Databricks still hasn't replied to us, and neither have we received an answer when we emailed partners@databricks, so our hope is that someone here has the answer đ Thanks!!
[ERROR] 2022-08-24T17:54:17.899Z ea746964-04dc-4796-9f5f-472f9b96b32d Exception: An error occurred (AccessDenied) when calling the CopyObject operation: Access Denied
Traceback (most recent call last):
File "/var/task/index.py", line 42, in handler
copy_objects(source_bucket, dest_bucket, prefix, objects)
File "/var/task/index.py", line 17, in copy_objects
s3.copy_object(CopySource=copy_source, Bucket=dest_bucket,
File "/var/runtime/botocore/client.py", line 391, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/runtime/botocore/client.py", line 719, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the CopyObject operation: Access Denied
â09-01-2022 11:30 AM
Here are some answers:
copyObject error - we were using a Databricks provided cloudformation template but this error goes away when we use the AWS provided template
createWorkspace error - we had subscribed>unsubscribed>resubscribed to Databricks via the AWS Marketplace. This cause our Databricks account to get 'locked' in a Cancelled status. We simply signed up again under a different email and the cloudformation template launched without an issue.
All good...hope this helps out!
â08-25-2022 11:30 AM
This is a typical error where IAM role policies has to be checked. Could you please recheck the role policies and confirm?
â08-25-2022 11:35 AM
looking now...however, what exactly am I looking for in the policy to identify as potentially incorrect?
â08-26-2022 08:59 AM
Hi again @Debayan Mukherjeeâ. We're still struggling to get the cloudformation template deployed and I'm not getting much assistance from our partner manager. any chance you have availability for a brief call?
â08-26-2022 12:47 AM
CopyObject operation: Access Denied -- looks like the permission to storage bucket is denied. Is this happening for all users or only while using specific IAM roles?
Also if you are using a cross-account role please check if the role is present in the bucket policy.
â08-26-2022 04:30 AM
thanks for the response @Prabakar Ammeappinâ . We have manually created the S3 bucket and are waiting for someone at our client site that has IAM priviledges (we are contractors to them and don't have that permission) to create the cross-account role. My hope is to report back here in a few hours with the solution đ
â08-26-2022 09:18 AM
Morning @Prabakar Ammeappinâ same question for you that I just posted to debayan....We're still struggling to get the cloudformation template deployed and I'm not getting much assistance from our partner manager. any chance you have availability for a brief call?
â08-26-2022 11:16 AM
@Debayan Mukherjeeâ @Prabakar Ammeappinâ got passed the CopyObject error message and now the CloudFormation template errors out near the end on 'createWorkspace'. Any thoughts?
â08-26-2022 08:30 PM
Hi @Brad Sheridanâ our time zone are different and i am unable to respond âto you immediately. It's good to know you resolved the copyobject issue. Please provide the steps that you used to resolve the issue so it would help others.
â
For the error at create workspace, what is the error you are facing? Please add the screenshot with the error.
â08-27-2022 06:22 AM
Hi @Prabakar Ammeappinâ and thanks for getting back to me. The createWorkspace error happens near the end of the Cloudformation template and here is the error:
Received response status [FAILED] from custom resource. Message returned: Conflict InputData: {'workspace_name': 'nsc-poc-workspace', 'aws_region': 'us-east-1', 'credentials_id': '1f6914f7-9c47-4bf3-a1ed-c87c8451bea0', 'storage_configuration_id': '8ecf6b3e-3e6d-4629-af96-8cb70311bad1', 'network_id': '259c58e2-78f8-4285-b798-69126d87133c', 'deployment_name': 'nsc-poc'} (RequestId: d52f686d-d71a-4fd7-b15f-c15ec16da57e)
The following resource(s) failed to create: [createWorkspace].
â08-27-2022 06:23 AM
regarding the copyObject error that we overcame, I'll ask one of my engineers on Monday how he got passed the error and report back here.
â08-27-2022 08:17 AM
Hi @Brad Sheridanâ Could you please try creating the workspace without the deployment_name? I suspect it could be the cause.
â08-27-2022 09:19 AM
Hi @Prabakar Ammeappinâ I relaunched the CFT and this time did not fill in the "(Optional) Recommended to provide a unique deployment name for your workspace" parameter but still no luck....
Received response status [FAILED] from custom resource. Message returned: Conflict InputData: {'workspace_name': 'databricks-nsc-poc94-workspace', 'aws_region': 'us-east-1', 'credentials_id': '6e78ed35-26c6-423b-b16f-711765fd2643', 'storage_configuration_id': '14797b70-932b-4f4d-b8c5-64f12711d877', 'network_id': 'fa8856e7-442a-44b1-9b42-16c8cc0c0545'} (RequestId: d819f683-574e-4342-b59d-d3072dcea787)
â08-28-2022 08:03 AM
Regarding how we overcame the copyObject error, my engineer responded saying that we were using a different (Databricks provided??) Cloudformation template until our Databricks Sales Engineer told us to use the AWS Quickstart template
â08-27-2022 09:48 AM
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonât want to miss the chance to attend and share knowledge.
If there isnât a group near you, start one and help create a community that brings people together.
Request a New Group