npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ws-cdk-deployer

v0.0.7

Published

This tool aim to ease the deployment of CDK app for Wokshop studio accounts provisionning.

Downloads

3

Readme

Workshop studio cdk app deployer

This tool aim to ease the deployment of CDK app for Wokshop studio accounts provisionning.

Prerequesite

  1. To have a Workshop repo created and clone from https://studio.us-east-1.prod.workshops.aws/workshops
  2. An AWS CDK app folder part of a git repository (it can be the same as the workshop, but only committed file will be added to the deployable zip)
  3. An instance of the CDK Deployer (https://constructs.dev/packages/aws-analytics-reference-architecture/v/2.5.0/api/CdkDeployer?lang=typescript)
  4. node installed

What it does ?

  1. Compress CDK app into a zip file
  2. Upload CDK app into the right bucket
  3. Generate CDK deployer CFN template (with proper buildspec)
  4. Populate workshop studio content spec
  5. Push changes to git

Usage

Add the CDKDeployer stack to your CDK app

  • TypeScript example bin/myCdkApp.ts
#!/usr/bin/env node
import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import { MyCdkAppStack } from '../lib/my_cdk_app-stack';
import { CdkDeployer, DeploymentType } from 'aws-analytics-reference-architecture';

const app = new cdk.App();
const stackName = 'MyCdkAppStack';
new MyCdkAppStack(app, stackName, {});

new CdkDeployer(app, {
  deploymentType: DeploymentType.WORKSHOP_STUDIO,
  deployBuildSpec: BuildSpec.fromSourceFilename('buildspec-deploy.yml'),
  destroyBuildSpec: BuildSpec.fromSourceFilename('buildspec-destroy.yml'),
  cdkParameters: {
    queueName: {
      type: 'String',
      default: 'my-queue',
    },
  }
});
  • Python example app.py
#!/usr/bin/env python3
import os

import aws_cdk as cdk

from als_ara.als_ara_stack import AlsAraStack
import aws_analytics_reference_architecture as ara

app = cdk.App()
stackName = 'AlsAraStack'
AlsAraStack(app, stackName,)

ara.CdkDeployer( app,
    deployment_type=ara.DeploymentType.WORKSHOP_STUDIO,
    stack_name=stackName,
)

app.synth()

For more details about the CDKDeployer API, check https://constructs.dev/packages/aws-analytics-reference-architecture/v/2.5.0/api/CdkDeployer?lang=typescript

Set your workshop through the CLI

npx ws-cdk-deployer <WORKSHOP_ID> --cdk-project-path ./myCdkApp --workshop-repo-path ./

Help

npx ws-cdk-deployer --help

Usage: bin [options] <workshopId>

A simple tool to make your CDK app works in Workshop studio. 
 
 Prerequisite : Export AWS credentials from Workshop studio page !

Arguments:
  workshopId                          Workshop ID available in "Workshop details"
                                      of your workshop
                                      (https://studio.us-east-1.prod.workshops.aws/workshops)

Options:
  -p, --cdk-project-path <string>     Path to the cdk app (default: "./")
  -ws, --workshop-repo-path <string>  Path to the workshop repo (default: "./")
  -st, --skip-templates               add this flag to skip template update and
                                      only update cdk app (default: false)
  -vvv, --verbose                     debug mode (default: false)
  -h, --help                          display help for command

Dev

npx projen && npm run build
cd ../MyProject
node ../ee-cdk-cli/bin f17befc027c248488537c7a122400985 -vvv