Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
cdk-standalone-deployer
Advanced tools
This construct enable to easily deploy an AWS CDK app without a local environment. This construct will create a Cloud Formation template starting an AWS Code Build project which will run a `cdk bootstrap` and `cdk deploy` from the given source (being eith
This construct enable to easily deploy an AWS CDK app without a local environment.
This construct will create a Cloud Formation template starting an AWS Code Build project which will run a cdk bootstrap
and cdk deploy
from the given source (being either a zip in an S3 bucket or a github repository).
This enable to create a simple deploy link for your CDK app such as:
Which, if you click, will deploy the example contains in this repo sample-cdk-app
folder (which consist of a simple SQS queue) into your AWS account.
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 { CdkStandaloneDeployer } from 'cdk-standalone-deployer';
const app = new cdk.App();
const stackName = 'MyCdkAppStack';
new MyCdkAppStack(app, stackName, {});
new CdkStandaloneDeployer(app, {
deployBuildSpec: BuildSpec.fromSourceFilename('buildspec-deploy.yml'),
destroyBuildSpec: BuildSpec.fromSourceFilename('buildspec-destroy.yml'),
githubRepository: 'aws-samples/aws-cdk-examples',
cdkAppLocation: 'python/lambda-layer',
}
);
For more details about the CDKStandaloneDeployer API check API.md
It also comes with a command line interface (CLI) that enable you to quickly generate click to deploy link.
The CLI will take your CDK app repository name and public S3 bucket to publish the Deployer stack to. It will then synthesize and publish the template with the right configuration without any modification of your code.
Taking any of the aws-samples/aws-cdk-examples, to create a click to deploy link you just have to run the following command:
npx cdk-standalone-deployer --github-repo-name aws-samples/aws-cdk-examples --cdk-project-path python/lambda-layer --public-read --github-repo-branch master
Check access permissions ...
Access granted !
Generating the deployer stack ...
CDK Deployer CloudFormation template generated. Uploading it to S3 ...
Uploading CDK Deployer CloudFormation template to S3 bucket cdk-standalone-deployer-aws-samples-aws-cdk-examples-main-us-east-1/cdk-standalone-deployer-cfn-template.json ...
you can now add the following markdown to your README.md : https://img.shields.io/badge/Click%20to-CDK%20Deploy-blue)](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=cdkDeployer&templateURL=https://cdk-standalone-deployer-aws-samples-aws-cdk-examples-main-us-east-1.s3.amazonaws.com/cdk-standalone-deployer-cfn-template.json)
You are all done !
npx cdk-standalone-deployer --help
Usage: cli [options]
A simple tool to make your CDK app deployable through a click to deploy button.
Prerequisite : Export AWS credentials !
Options:
--github-repo-name <string> Name of the repo example: "aws-samples/aws-cdk-examples"
--s3-bucket-name <string> S3 bucket to use to upload the CDK Deployer stack and potentially the zip
file
--s3-key-prefix <string> S3 key prefix to use to upload the CDK Deployer stack and potentially the
zip file
--s3-bucket-region <string> S3 bucket region to use to upload the CDK Deployer stack and potentially
the zip file (default: "us-east-1")
--public-read Make the S3 bucket public read (default: false)
--github-repo-branch <string> Branch to use (default: "main")
--cdk-project-path <string> Path to the cdk app (default: "./")
--stack-name <string> Name of the stack to deploy
-h, --help display help for command
FAQs
## TL;DR
The npm package cdk-standalone-deployer receives a total of 0 weekly downloads. As such, cdk-standalone-deployer popularity was classified as not popular.
We found that cdk-standalone-deployer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.