title: Access Denied issue in AWS Glue while performing a simple ETL task
body: <p>I am facing an error wile trying run AWS Glue , i am trying to copy data from my table which was filled with the help of a crawler.</p>
  <p>The Error is given below</p>
  <p><strong>An error occurred while calling o91.pyWriteDynamicFrame. Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 6YRCFCNCKW9ZK2PF; S3 Extended Request ID: 7v/5/dEhaxjIMMxfpCEu5vT6fwzmyV0kIphicPvUDYKY23rFYN1ALn2qo/N3CcIUEhSrOGKklW4=; Proxy: null)</strong></p>
  <p>my script is given below :</p>
  <pre><code>import sys
  from awsglue.transforms import *
  from awsglue.utils import getResolvedOptions
  from pyspark.context import SparkContext
  from awsglue.context import GlueContext
  from awsglue.job import Job
  
  args = getResolvedOptions(sys.argv, [&quot;JOB_NAME&quot;])
  sc = SparkContext()
  glueContext = GlueContext(sc)
  spark = glueContext.spark_session
  job = Job(glueContext)
  job.init(args[&quot;JOB_NAME&quot;], args)
  
  # Script generated for node AWS Glue Data Catalog
  AWSGlueDataCatalog_node1647583966899 = glueContext.create_dynamic_frame.from_catalog(
      database=&quot;s3-databse-mockdata&quot;,
      table_name=&quot;mock_data_csv&quot;,
      transformation_ctx=&quot;AWSGlueDataCatalog_node1647583966899&quot;,
  )
  
  # Script generated for node Amazon S3
  AmazonS3_node1647583976365 = glueContext.getSink(
      path=&quot;s3://destination-001/&quot;,
      connection_type=&quot;s3&quot;,
      updateBehavior=&quot;UPDATE_IN_DATABASE&quot;,
      partitionKeys=[],
      enableUpdateCatalog=True,
      transformation_ctx=&quot;AmazonS3_node1647583976365&quot;,
  )
  AmazonS3_node1647583976365.setCatalogInfo(
      catalogDatabase=&quot;s3-databse-mockdata&quot;, catalogTableName=&quot;dest-table&quot;
  )
  AmazonS3_node1647583976365.setFormat(&quot;csv&quot;)
  AmazonS3_node1647583976365.writeFrame(AWSGlueDataCatalog_node1647583966899)
  job.commit()
  </code></pre>
  <p>I am unable to find what is the problem</p>