{"id":20591212,"url":"https://github.com/kaysilvha/dynamodb_dio","last_synced_at":"2026-03-09T02:31:11.989Z","repository":{"id":153658015,"uuid":"630211848","full_name":"KAYSILVHA/DynamoDB_dio","owner":"KAYSILVHA","description":"projeto desenvolvido no bootcamp da DIO em parceria com o banco PAN para Boas práticas com DynamoDB","archived":false,"fork":false,"pushed_at":"2023-04-19T22:55:06.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T13:45:43.467Z","etag":null,"topics":["dyanmodb"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KAYSILVHA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-04-19T22:53:33.000Z","updated_at":"2023-04-19T22:56:08.000Z","dependencies_parsed_at":"2023-07-24T23:15:06.441Z","dependency_job_id":null,"html_url":"https://github.com/KAYSILVHA/DynamoDB_dio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KAYSILVHA/DynamoDB_dio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KAYSILVHA%2FDynamoDB_dio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KAYSILVHA%2FDynamoDB_dio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KAYSILVHA%2FDynamoDB_dio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KAYSILVHA%2FDynamoDB_dio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KAYSILVHA","download_url":"https://codeload.github.com/KAYSILVHA/DynamoDB_dio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KAYSILVHA%2FDynamoDB_dio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30280824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:23:26.802Z","status":"ssl_error","status_checked_at":"2026-03-09T02:22:46.175Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dyanmodb"],"created_at":"2024-11-16T07:39:32.344Z","updated_at":"2026-03-09T02:31:11.967Z","avatar_url":"https://github.com/KAYSILVHA.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# dio-live-dynamodb\nRepositório para o live coding do dia 30/09/2021 sobre o Amazon DynamoDB\n\n### Serviço utilizado\n  - Amazon DynamoDB\n  - Amazon CLI para execução em linha de comando\n\n### Comandos para execução do experimento:\n\n\n- Criar uma tabela\n\n```\naws dynamodb create-table \\\n    --table-name Music \\\n    --attribute-definitions \\\n        AttributeName=Artist,AttributeType=S \\\n        AttributeName=SongTitle,AttributeType=S \\\n    --key-schema \\\n        AttributeName=Artist,KeyType=HASH \\\n        AttributeName=SongTitle,KeyType=RANGE \\\n    --provisioned-throughput \\\n        ReadCapacityUnits=10,WriteCapacityUnits=5\n```\n\n- Inserir um item\n\n```\naws dynamodb put-item \\\n    --table-name Music \\\n    --item file://itemmusic.json \\\n```\n\n- Inserir múltiplos itens\n\n```\naws dynamodb batch-write-item \\\n    --request-items file://batchmusic.json\n```\n\n- Criar um index global secundário baeado no título do álbum\n\n```\naws dynamodb update-table \\\n    --table-name Music \\\n    --attribute-definitions AttributeName=AlbumTitle,AttributeType=S \\\n    --global-secondary-index-updates \\\n        \"[{\\\"Create\\\":{\\\"IndexName\\\": \\\"AlbumTitle-index\\\",\\\"KeySchema\\\":[{\\\"AttributeName\\\":\\\"AlbumTitle\\\",\\\"KeyType\\\":\\\"HASH\\\"}], \\\n        \\\"ProvisionedThroughput\\\": {\\\"ReadCapacityUnits\\\": 10, \\\"WriteCapacityUnits\\\": 5      },\\\"Projection\\\":{\\\"ProjectionType\\\":\\\"ALL\\\"}}}]\"\n```\n\n- Criar um index global secundário baseado no nome do artista e no título do álbum\n\n```\naws dynamodb update-table \\\n    --table-name Music \\\n    --attribute-definitions\\\n        AttributeName=Artist,AttributeType=S \\\n        AttributeName=AlbumTitle,AttributeType=S \\\n    --global-secondary-index-updates \\\n        \"[{\\\"Create\\\":{\\\"IndexName\\\": \\\"ArtistAlbumTitle-index\\\",\\\"KeySchema\\\":[{\\\"AttributeName\\\":\\\"Artist\\\",\\\"KeyType\\\":\\\"HASH\\\"}, {\\\"AttributeName\\\":\\\"AlbumTitle\\\",\\\"KeyType\\\":\\\"RANGE\\\"}], \\\n        \\\"ProvisionedThroughput\\\": {\\\"ReadCapacityUnits\\\": 10, \\\"WriteCapacityUnits\\\": 5      },\\\"Projection\\\":{\\\"ProjectionType\\\":\\\"ALL\\\"}}}]\"\n```\n\n- Criar um index global secundário baseado no título da música e no ano\n\n```\naws dynamodb update-table \\\n    --table-name Music \\\n    --attribute-definitions\\\n        AttributeName=SongTitle,AttributeType=S \\\n        AttributeName=SongYear,AttributeType=S \\\n    --global-secondary-index-updates \\\n        \"[{\\\"Create\\\":{\\\"IndexName\\\": \\\"SongTitleYear-index\\\",\\\"KeySchema\\\":[{\\\"AttributeName\\\":\\\"SongTitle\\\",\\\"KeyType\\\":\\\"HASH\\\"}, {\\\"AttributeName\\\":\\\"SongYear\\\",\\\"KeyType\\\":\\\"RANGE\\\"}], \\\n        \\\"ProvisionedThroughput\\\": {\\\"ReadCapacityUnits\\\": 10, \\\"WriteCapacityUnits\\\": 5      },\\\"Projection\\\":{\\\"ProjectionType\\\":\\\"ALL\\\"}}}]\"\n```\n\n- Pesquisar item por artista\n\n```\naws dynamodb query \\\n    --table-name Music \\\n    --key-condition-expression \"Artist = :artist\" \\\n    --expression-attribute-values  '{\":artist\":{\"S\":\"Iron Maiden\"}}'\n```\n- Pesquisar item por artista e título da música\n\n```\naws dynamodb query \\\n    --table-name Music \\\n    --key-condition-expression \"Artist = :artist and SongTitle = :title\" \\\n    --expression-attribute-values file://keyconditions.json\n```\n\n- Pesquisa pelo index secundário baseado no título do álbum\n\n```\naws dynamodb query \\\n    --table-name Music \\\n    --index-name AlbumTitle-index \\\n    --key-condition-expression \"AlbumTitle = :name\" \\\n    --expression-attribute-values  '{\":name\":{\"S\":\"Fear of the Dark\"}}'\n```\n\n- Pesquisa pelo index secundário baseado no nome do artista e no título do álbum\n\n```\naws dynamodb query \\\n    --table-name Music \\\n    --index-name ArtistAlbumTitle-index \\\n    --key-condition-expression \"Artist = :v_artist and AlbumTitle = :v_title\" \\\n    --expression-attribute-values  '{\":v_artist\":{\"S\":\"Iron Maiden\"},\":v_title\":{\"S\":\"Fear of the Dark\"} }'\n```\n\n- Pesquisa pelo index secundário baseado no título da música e no ano\n\n```\naws dynamodb query \\\n    --table-name Music \\\n    --index-name SongTitleYear-index \\\n    --key-condition-expression \"SongTitle = :v_song and SongYear = :v_year\" \\\n    --expression-attribute-values  '{\":v_song\":{\"S\":\"Wasting Love\"},\":v_year\":{\"S\":\"1992\"} }'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaysilvha%2Fdynamodb_dio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaysilvha%2Fdynamodb_dio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaysilvha%2Fdynamodb_dio/lists"}