Skip to content

Incorrect query syntax + s3 handling in SageMaker ipynb #65

Description

@hack-r
  1. This code in the ipynb throws a syntax error:
query = """
DESCRIBE {}.{}
""".format(DB_NAME, TABLE_NAME)

it should be

query = """
DESCRIBE "{}"."{}"
""".format(DB_NAME, TABLE_NAME)
  1. When following the instructions associated with this notebook, you correctly create a SageMaker IAM role with access to TimeStream and s3, however the bucket "ts-sagemaker" is not created in anyway that's reflected in your S3 console and the included code throws a false permission error. If you try to create a bucket with that name S3 says the bucket exists, yet S3 says you have no buckets and the ipynb code returns a permission error even with full S3 access granted to the SageMaker execution role. A solution is to create your own bucket manually (e.g. "ts-sagemaker-1") and update the ipynb accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions