{"id":19706329,"url":"https://github.com/tsapporg/ts-app-aws-infra","last_synced_at":"2025-06-23T11:37:15.179Z","repository":{"id":205895892,"uuid":"628697687","full_name":"tsapporg/ts-app-aws-infra","owner":"tsapporg","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-24T23:06:02.000Z","size":53592,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-27T17:35:38.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/tsapporg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-16T18:41:06.000Z","updated_at":"2023-11-06T23:52:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"47f00cfc-3a84-43bf-b0f6-2001ca16abee","html_url":"https://github.com/tsapporg/ts-app-aws-infra","commit_stats":null,"previous_names":["tsapporg/ts-app-aws-infra"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsapporg/ts-app-aws-infra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsapporg%2Fts-app-aws-infra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsapporg%2Fts-app-aws-infra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsapporg%2Fts-app-aws-infra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsapporg%2Fts-app-aws-infra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsapporg","download_url":"https://codeload.github.com/tsapporg/ts-app-aws-infra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsapporg%2Fts-app-aws-infra/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261470063,"owners_count":23163211,"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","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":[],"created_at":"2024-11-11T21:35:07.566Z","updated_at":"2025-06-23T11:37:10.161Z","avatar_url":"https://github.com/tsapporg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-app-aws-infra\nThis package is responsible for provided AWS-specific infra software. Currently all that's in here is (yet another) Local Dynamo provider, but this one runs _without_ Docker, is typed, and uses the latest AWS SDK V3 DynamoDB client.\n\nThis source code is experimental and therefore unpublished on NPM; install directly from Github. \n\n## Pre-reqs\n1. Java - Definitely \u003e v11 (v11 did not work w/ latest Local Dynamo, but v17 did)\n\n## Usage\nTo use Local Dynamo:\n\n    import { LocalDynamoDB } from 'ts-app-aws-infra';\n    import { CreateTableCommandInput, GetItemCommand, PutItemCommand } from '@aws-sdk/client-dynamodb';\n\n    const createTable = (TableName: string): CreateTableCommandInput =\u003e {\n      return {\n        TableName,\n        KeySchema: [{ AttributeName: 'id', KeyType: 'HASH' }],\n        AttributeDefinitions: [{ AttributeName: 'id', AttributeType: 'S' }],\n        ProvisionedThroughput: {\n          ReadCapacityUnits: 5,\n          WriteCapacityUnits: 5\n        },\n        StreamSpecification: {\n          StreamEnabled: true,\n          StreamViewType: 'NEW_AND_OLD_IMAGES'\n        }\n      };\n    }\n\n    const localDynamoDBInfra = await LocalDynamoDB.setup(4567, [createTable('table-name')]);\n    const localDynamoDBClient = localDynamoDBInfra.getLocalDynamoDBClient();\n\n    const putItemCommand = new PutItemCommand({\n      TableName: 'table-name', Item: { id: { S: 'id' }, key: { S: 'value' } }\n    });\n    console.debug('put item', putItemCommand);\n    await localDynamoDBClient.send(putItemCommand);\n\n    await localDynamoDBInfra.teardown();\n\n## Test\n\n    make tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsapporg%2Fts-app-aws-infra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsapporg%2Fts-app-aws-infra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsapporg%2Fts-app-aws-infra/lists"}