{"id":28354372,"url":"https://github.com/purple-technology/serverless-seed-plugin","last_synced_at":"2026-05-09T16:39:47.471Z","repository":{"id":44688887,"uuid":"372420134","full_name":"purple-technology/serverless-seed-plugin","owner":"purple-technology","description":"This plugin seeds the data for AWS resources.","archived":false,"fork":false,"pushed_at":"2023-12-15T02:20:19.000Z","size":435,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-09-20T05:27:15.764Z","etag":null,"topics":["aws","cognito","dynamodb","plugin","plugin-seeds","s3","seed","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purple-technology.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-31T07:29:43.000Z","updated_at":"2025-09-09T21:30:37.000Z","dependencies_parsed_at":"2024-10-23T05:49:21.444Z","dependency_job_id":"ed5f20b3-234d-405b-a60b-05d7460a5206","html_url":"https://github.com/purple-technology/serverless-seed-plugin","commit_stats":{"total_commits":51,"total_committers":4,"mean_commits":12.75,"dds":"0.43137254901960786","last_synced_commit":"89e59bb4c4c85fc1760e2402394f7896a00ac29b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/purple-technology/serverless-seed-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purple-technology%2Fserverless-seed-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purple-technology%2Fserverless-seed-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purple-technology%2Fserverless-seed-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purple-technology%2Fserverless-seed-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purple-technology","download_url":"https://codeload.github.com/purple-technology/serverless-seed-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purple-technology%2Fserverless-seed-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003189,"owners_count":26083533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cognito","dynamodb","plugin","plugin-seeds","s3","seed","serverless"],"created_at":"2025-05-28T02:11:25.330Z","updated_at":"2025-10-10T07:33:24.440Z","avatar_url":"https://github.com/purple-technology.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# serverless-seed-plugin\n\nThis plugin is still in WIP and non-stable.\n\n[![CI Status Badge](https://circleci.com/gh/purple-technology/serverless-seed-plugin.svg?style=svg)](https://github.com/purple-technology/serverless-seed-plugin)\n\nThis plugin seeds the data for AWS resources.\n\n## Supported resources\n\n- `AWS::DynamoDB::Table`\n- `AWS::Cognito::UserPool`\n- `AWS::S3::Bucket`\n\n## Install\n\n```sh\n$ npm install --save-dev serverless-seed-plugin\n```\n\nAdd the plugin to your `serverless.yml` file.\n\n```yml\nplugins:\n  - serverless-seed-plugin\n```\n\n## Usage\n\nSet up `custom.seed.\u003cresource\u003e.\u003coptions\u003e` in your `serverless.yml` file. You can also follow the code in [./example/](./example) dir.\n\nThen run `serverless seed`.\n\n### DynamoDB\n\n```yml\ncustom:\n  seed:\n    dynamodb:\n      TableId:\n        emptyOnly: true # default false - seed only if target is empty\n        truncate: true # default false\n        clone:\n          table: source-table-name # Clone data from table\n          recreate: true # default false\n          config: # empty by default, for more options see https://github.com/enGMzizo/copy-dynamodb-table#aws-config-for-each-table--cross-region--\n            accessKeyId: AKID\n            secretAccessKey: SECRET\n            region: eu-west-1\n        data:\n          - id: 'abc1'\n            name: 'myRecordName1'\n          - id: 'abc2'\n            name: 'myRecordName2'\n```\n\n### Cognito\n\n- [x] immutable attributes are set only first time, otherwise update of these attributes is skipped\n- [x] `custom:` prefix for custom attributes is required\n- [x] every created user has confirmed account status and no confirmation e-mail is sent\n- [x] only attributes and password is updated if user exists\n\n```yml\ncustom:\n  seed:\n    cognito:\n      TodosUserPool:\n        emptyOnly: true # default false - seed only if target is empty\n        data:\n          - username: abc1\n            password: passw1\n            attributes:\n              - Name: custom:mutableClientData\n                Value: mutableClientData_val\n              - Name: custom:immutableClientData\n                Value: immutableClientData_val\n          - username: abc2\n            password: passw2\n            attributes: []\n```\n\n### S3\n\nDo not forget to clear all objects from bucket, before `serverless remove` command called or use [our plugin](https://github.com/purple-technology/serverless-s3-remover)\n\n- [x] all nested dirs and files will be uploaded\n- [x] existing files will be overwritten\n\n```yml\ncustom:\n  seed:\n    s3:\n      TodosBucket:\n        emptyOnly: true # default false - seed only if target is empty\n        data:\n          - ./somedir/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurple-technology%2Fserverless-seed-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurple-technology%2Fserverless-seed-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurple-technology%2Fserverless-seed-plugin/lists"}