-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DynamoDB: Import table from S3 #21825
Comments
This issue can be assigned to me, will work on adding the feature. |
Thanks a bunch @LeeroyHannigan, please continue any discussions in this issue about design if you have any so the team can comment 🙂 |
Any process been made on this? |
Currently running tests. Should be pushed by end of the month. |
Morning @LeeroyHannigan. Any update for us? |
@LeeroyHannigan apologies for the second ping on this. Any update on the release for this? |
@peterwoodworth @LeeroyHannigan any update? |
.................any updates? I am asking for @jarnohenneman......and myself. |
I'll take this future request. |
This PR adds support for importing data from a bucket. This feature is not supported by `AWS::DynamoDB::GlobalTable`, so it is implemented only in the `Table` construct. ### Details of this feature Users can create DynamoDB table using data from the bucket. The data to be imported can be a single object or multiple objects. This can be selected by specifying the prefix of the key. Data format must be CSV, DynamoDB JSON, or Amazon Ion. ZSTD or GZIP compressed data can also be imported. For CSV files, delimiter and header can be specified as options. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/S3forDynamoDB.html In CloudFormation, use this feat as follows. ```yaml AWSTemplateFormatVersion: "2010-09-09" Resources: MyTable: Type: AWS::DynamoDB::Table Properties: AttributeDefinitions: - AttributeName: "id" AttributeType: "S" KeySchema: - AttributeName: "id" KeyType: "HASH" TableName: "myTableName" ImportSourceSpecification: InputCompressionType: NONE # GZIP | ZSTD InputFormat: DYNAMODB_JSON # ION | CSV S3BucketSource: S3Bucket: cloudfs-s3 S3KeyPrefix: db ``` https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-importsourcespecification.html Closes #21825 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the feature
To import data into DynamoDB, your data must be in an Amazon S3 bucket in CSV, DynamoDB JSON, or Amazon Ion format. Data can be compressed in ZSTD or GZIP format, or can be directly imported in uncompressed form. Source data can either be a single Amazon S3 object or multiple Amazon S3 objects that use the same prefix.
CFN ImportSpecification
DynamoDB S3DataImport
Use Case
Feature parity with CFN for newly created feature.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.38.1
Environment details (OS name and version, etc.)
Mac OS 12.5
The text was updated successfully, but these errors were encountered: