{"id":35066785,"url":"https://github.com/capralifecycle/liflig-cdk-vy","last_synced_at":"2026-06-07T04:01:42.982Z","repository":{"id":321400972,"uuid":"1085633029","full_name":"capralifecycle/liflig-cdk-vy","owner":"capralifecycle","description":"CDK constructs for the Vy internal services, based on nsbno/terraform-provider-vy","archived":false,"fork":false,"pushed_at":"2026-06-06T06:59:25.000Z","size":1142,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-06T08:20:58.777Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/capralifecycle.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-29T10:00:36.000Z","updated_at":"2026-06-06T03:27:27.000Z","dependencies_parsed_at":"2026-02-27T05:01:56.252Z","dependency_job_id":"6a7f6c6a-0ede-4b76-9870-a710134372ce","html_url":"https://github.com/capralifecycle/liflig-cdk-vy","commit_stats":null,"previous_names":["capralifecycle/liflig-cdk-vy"],"tags_count":141,"template":false,"template_full_name":null,"purl":"pkg:github/capralifecycle/liflig-cdk-vy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk-vy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk-vy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk-vy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk-vy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capralifecycle","download_url":"https://codeload.github.com/capralifecycle/liflig-cdk-vy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk-vy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34008068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"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":[],"created_at":"2025-12-27T11:33:50.796Z","updated_at":"2026-06-07T04:01:42.965Z","avatar_url":"https://github.com/capralifecycle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDK constructs for the Vy internal services\n\nEasily use internal services from Vy in CDK infrastructure code.\n\nThis is based on https://github.com/nsbno/terraform-provider-vy\n\n## Usage\n\n```bash\nnpm install @liflig/cdk-vy\n```\n\n### Create a VyCognitoProvider\n\n```typescript\nconst vyCognitoProvider = new VyCognitoProvider(this, \"MyProvider\", {\n  environment: VyEnvironment.TEST,\n});\n```\n\n### Create a resource server\n\n```typescript\nconst resourceServer = new CognitoResourceServer(this, \"ApiResourceServer\", {\n  resourceServerProvider: vyCognitoProvider.resourceServerProvider,\n  name: \"my-api\",\n  identifier: \"https://my-api.vydev.io\",\n  scopes: [\n    { name: \"read\", description: \"Read access to the API\" },\n    { name: \"write\", description: \"Write access to the API\" },\n  ],\n});\n```\n\n### Create app clients\n\n```typescript\n// Backend app client for M2M authentication\nconst backendClient = new CognitoAppClient(this, \"BackendClient\", {\n  appClientProvider: vyCognitoProvider.appClientProvider,\n  name: \"my-backend-service\",\n  type: AppClientType.BACKEND,\n  scopes: [\"https://api.vydev.io/read\", \"https://api.vydev.io/write\"]\n});\n\n// Access credentials\nconst clientId = backendClient.clientId;\nconst clientSecret = backendClient.clientSecret; // Stored in Secrets Manager\n\n@example\n// Frontend app client for user authentication\nconst frontendClient = new CognitoAppClient(this, \"FrontendClient\", {\n  appClientProvider: vyCognitoProvider.appClientProvider,\n  name: \"my-web-app\",\n  type: AppClientType.FRONTEND,\n  scopes: [\"email\", \"openid\", \"profile\"],\n  callbackUrls: [\"https://my-app.vydev.io/auth/callback\"],\n  logoutUrls:  [\"https://my-app.vydev.io/logout\"],\n  authUrlPath: \"/oauth2/token\"\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapralifecycle%2Fliflig-cdk-vy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapralifecycle%2Fliflig-cdk-vy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapralifecycle%2Fliflig-cdk-vy/lists"}