1.0.15 • Published 29 days ago

@jaypie/cdk v1.0.15

Weekly downloads
-
License
-
Repository
-
Last release
29 days ago

Jaypie CDK ☃️

AWS CDK utilities for Jaypie

📋 Usage

@jaypie/cdk is a CommonJS package that is compatible with the AWS CDK libraries. Unlike other Jaypie packages, @jaypie/cdk should not be installed alongside jaypie.

Installation

npm install @jaypie/cdk

Example

TODO: Example should include one trivial and possibly one thorough example of using the library

📖 Reference

import {
  cfnOutput,
  isValidHostname,
  isValidSubdomain,
  mergeDomain,
  projectTagger,
} from "jaypie";

cfnOutput

Creates a CloudFormation output for each key in the output object.

import { CfnOutput } from "aws-cdk-lib";
import { cfnOutput } from "jaypie";

const output = {};
output["key"] = "value";

// ...

cfnOutput({ CfnOutput, output, stack: this });

isValidHostname

What it says on the tin. Returns boolean

import { isValidHostname } from "jaypie";

const hostname = "example.com";
const isValid = isValidHostname(hostname);

isValidSubdomain

What it says on the tin. Returns boolean

import { isValidSubdomain } from "jaypie";

const subdomain = "sub.example.com";
const isValid = isValidSubdomain(subdomain);

mergeDomain

Merges a subdomain with a domain

import { mergeDomain } from "jaypie";

const domain = "example.com";
const subdomain = "sub";
const merged = mergeDomain(subdomain, domain); // "sub.example.com"

projectTagger

Tags the stack with stack name and project conventions.

import cdk from "aws-cdk-lib";
import { projectTagger } from "jaypie";

// ...

projectTagger({
  cdk,
  stack,
  stackName,
});

Tags:

  • buildDate
  • buildTime
  • commit
  • creation
  • env
  • nonce
  • project
  • service
  • sponsor
  • stack
  • version

📝 Changelog

DateVersionSummary
3/30/20241.0.0First complete version
3/30/20240.0.1Initial commit

📜 License

Published by Finlayson Studio. All rights reserved

1.0.15

29 days ago

1.0.14

29 days ago

1.0.11

1 month ago

1.0.13

1 month ago

1.0.12

1 month ago

1.0.9

1 month ago

1.0.8

1 month ago

1.0.7

1 month ago

1.0.10

1 month ago

1.0.6

1 month ago

1.0.5

1 month ago

1.0.4

1 month ago

1.0.3

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago

0.1.0

2 months ago