SDF supports reading data and metadata from S3, and writing it the results back.
Collect Required Information
access_key the access key of your IAM profilesecret_access_key the secret key of your IAM profileregion containing the S3 objectssdf auth login aws --help to see all login options.Register the User in the AWS CLI
Connect SDF to AWS
~/.sdf/ directory in the root of your system. This credential will be used
to authenticate with AWS services. By default, the credential’s name is default.
As such, the credential does not need to be explicitly referenced in the integrations
configuration below.Add S3 Integration in your SDF Workspace
workspace.sdf.yml
workspace block. This tells SDF to pull data from the specified bucket,Create a Table that Pulls Data from S3
models directory, or whichever directory you have specified in your workspace.sdf.yml’s includes block.Try it out!
sdf compile -q "select * from database.schema.my_external_table" --show allIf the connection is successful, you will see the schema for the table you selected.