Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Fluent AWS CodePipeline

deno module deno compatibility

Fluent AWS CodePipeline is a deno module for generating AWS CodePipeline configuration (buildspec.yml) files easily and fluently.

πŸš€ Usage

import { BuildSpec } from "https://deno.land/x/fluent_aws_codepipeline/mod.ts";

const buildspec = new BuildSpec();

buildspec
  .phase("install", {
    "runtime-versions": {
      golang: "1.13",
    },
  })
  .phase("build", {
    commands: [
      "echo Build started on `date`",
      "echo Compiling the Go code",
      "go build hello.go",
    ],
  })
  .phase("post_build", {
    commands: ["echo Build completed on `date`"],
  })
  .artifacts({
    files: ["hello"],
  });

console.log(buildspec.toString());

buildspec.save("buildspec.yml");