
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
cdk-static-web
Advanced tools
Simple, injectable construct to host a static website. The AWS examples and other packages seemed to use deprecated stuff so I figured I'd roll my own.
/potato
will rewrite to /potato/index.html
and also redirect to /potato/
).import * as acm from "@aws-cdk/aws-certificatemanager";
import { PriceClass } from "@aws-cdk/aws-cloudfront";
import * as route53 from "@aws-cdk/aws-route53";
import * as cdk from "@aws-cdk/core";
import { StaticWeb } from "cdk-static-web";
interface Props extends cdk.StackProps {
domainName: string;
}
export class ExampleWebStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props: Props) {
super(scope, id, props);
const { domainName } = props;
const zone = route53.PublicHostedZone.fromLookup(this, "ExampleZone", {
domainName,
});
const certificate = new acm.DnsValidatedCertificate(this, "ExampleWebCert", {
domainName,
hostedZone: zone,
region: "us-east-1",
});
new StaticWeb(this, "Example", {
zone,
certificate,
isSPA: true, // This will make error documents 200 to index.html
staticPath: "./public",
distributionProps: {
priceClass: PriceClass.PRICE_CLASS_100,
},
});
}
}
See API.md.
FAQs
Simple CDK web construct with Route 53, CloudFront, etc
The npm package cdk-static-web receives a total of 2 weekly downloads. As such, cdk-static-web popularity was classified as not popular.
We found that cdk-static-web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.