Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsirysndr/fluent-aws-codepipeline
Generate AWS CodePipeline YAML config from a simple declarative syntax in TypeScript 🛠️ 💻 ✨
https://github.com/tsirysndr/fluent-aws-codepipeline
aws aws-codepipeline cicd deno deno-module devops pipeline typescript
Last synced: about 1 month ago
JSON representation
Generate AWS CodePipeline YAML config from a simple declarative syntax in TypeScript 🛠️ 💻 ✨
- Host: GitHub
- URL: https://github.com/tsirysndr/fluent-aws-codepipeline
- Owner: tsirysndr
- License: mit
- Created: 2023-08-17T12:46:37.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-29T21:46:49.000Z (10 months ago)
- Last Synced: 2024-11-14T00:07:14.915Z (about 1 month ago)
- Topics: aws, aws-codepipeline, cicd, deno, deno-module, devops, pipeline, typescript
- Language: TypeScript
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Fluent AWS CodePipeline
[![deno module](https://shield.deno.dev/x/fluent_aws_codepipeline)](https://deno.land/x/fluent_aws_codepipeline)
![deno compatibility](https://shield.deno.dev/deno/^1.34)
[![](https://img.shields.io/codecov/c/gh/tsirysndr/fluent-aws-codepipeline)](https://codecov.io/gh/tsirysndr/fluent-aws-codepipeline)Fluent AWS CodePipeline is a deno module for generating AWS CodePipeline configuration (`buildspec.yml`) files easily and fluently.
## 🚀 Usage
```typescript
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");
```