Preparing the Source S3 for Amazon

To fetch data from a source Amazon S3, create a dedicated user account on the S3, and grant this account with the allow permissions required by Data Factory Studio to fetch data.

See Also
Appendix - About Sources
Configuring a Pipeline
Configuring a Data Storage
  1. On the source S3, create a user account dedicated to the fetch of data with Data Factory Studio, for example, dscrawluser.
  2. In the user policy, grant the following mandatory allow permissions to the user account.

    {
       "Version":"2012-10-17",
       "Statement":[
          {
             "Effect":"Allow",
             "Action": "s3:ListAllMyBuckets",
             "Resource":"arn:aws:s3:::*"
          },
          {
             "Effect":"Allow",
             "Action": "s3:ListBucket",
             "Resource":"arn:aws:s3:::awsexamplebucket1"
          },
          {
             "Effect":"Allow",
             "Action": "s3:GetObject",
             "Resource":"arn:aws:s3:::awsexamplebucket1/*"
          }
       ]
    }
    Permission action Description
    ListAllMyBuckets

    This permission is optional. It lists all the buckets defined with the ListBucket permission.

    This is useful when you configure the source buckets in Data Factory Studio.

    ListBucket

    Defines the buckets that are accessible.

    GetObject

    Defines the buckets and the data to crawl within them.

    For more information, see https://docs.aws.amazon.com/AmazonS3/latest/userguide/user-policies.html.

  3. Optional: To use the Download feature in the Browser tab of an External S3 Bucket storage, you must configure the Cross-origin resource sharing (CORS) policy on your S3 buckets. This is to allow download queries coming from your Data Factory Studio on the Amazon S3 bucket.
    1. In your AWS console, open your S3 bucket.
    2. Go to the Permissions tab.
    3. Browse to the Cross-origin resource sharing (CORS) section, and click Edit.
    4. In the CORS configuration editor, add or edit the JSON of your CORS configuration.

      [
          {
              "AllowedHeaders": [
                  "*"
              ],
              "AllowedMethods": [
                  "GET"
              ],
              "AllowedOrigins": [
                  "https://r11......"
              ],
              "ExposeHeaders": [],
              "MaxAgeSeconds": 3000
          }
      ]

      To allow cross-domain requests, update the AllowedOrigins element by specifying:

      • The tenant name (r11...).
      • The tenant geo.
      • The Data Factory Studio service URL and the 3DEXPERIENCE platform URL.

      For example:

      "AllowedOrigins": [
                  "https://r1132101576560-eu1-sgi.3dexperience.3ds.com",
                  "https://r1132101576560-eu1-ifwe.3dexperience.3ds.com"
              ],
      Recommendation: For a controlled security, specify each allowed URL. You can also specify "AllowedOrigins": [*] to enable all the origins to send cross-origin requests but it is less secure.

    5. Click Save changes.

    For more information, see https://docs.aws.amazon.com/AmazonS3/latest/userguide/cors.html.

  4. Put your data in the S3 buckets.