diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1f019c..4799eb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: it: strategy: matrix: - stack: [scud] + stack: [blueprint-golang] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/carry.yml b/.github/workflows/carry.yml index f61c6d2..6fdd193 100644 --- a/.github/workflows/carry.yml +++ b/.github/workflows/carry.yml @@ -7,7 +7,7 @@ jobs: it: strategy: matrix: - stack: [scud] + stack: [blueprint-golang] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 132cf86..4513ad3 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -11,7 +11,7 @@ jobs: it: strategy: matrix: - stack: [scud] + stack: [blueprint-golang] runs-on: ubuntu-latest steps: @@ -47,7 +47,7 @@ jobs: uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: eu-west-1 - name: cdk destroy diff --git a/.github/workflows/spawn.yml b/.github/workflows/spawn.yml index 101e2c5..a067670 100644 --- a/.github/workflows/spawn.yml +++ b/.github/workflows/spawn.yml @@ -11,7 +11,7 @@ jobs: it: strategy: matrix: - stack: [scud] + stack: [blueprint-golang] runs-on: ubuntu-latest if: github.event.label.name == '[@] deploy' steps: diff --git a/README.md b/README.md index 353caf0..5f6bb25 100644 --- a/README.md +++ b/README.md @@ -70,13 +70,22 @@ git fetch blueprint git merge blueprint/main --allow-unrelated-histories ``` +## Requirements + +Before Getting started, you have to ensure + +* [Golang](https://golang.org/dl/) development environment +* [AWS TypeScript CDK](https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html) +* Access to AWS Account + + ## Getting started **Let's have a look on the repository structure** The structure resembles the standard package layout proposed in [this blog post](https://medium.com/@benbjohnson/standard-package-layout-7cdbc8391fc1): -1. the root package contains core types to describe domain of your application. It contains simple types that has no dependency to technology. +1. the root package contains core types to describe domain of your application. It contains simple types that has no dependency to technology but their implements core logic and use-cases. 2. Use sub-packages to isolate dependencies to external technologies so that they act as bridge between your domain and technology adaptation. @@ -186,13 +195,13 @@ Continuos Integration and Delivery is implemented using GitHub Actions. It consi - [ ] add Lambda functions to [aws/lambda](aws/lambda) package - [ ] set the name of your stack at [cloud/src/index.ts](cloud/src/index.ts) and enhance the infrastructure ```ts -const stack = new cdk.Stack(app, `scud-${vsn}`, { ...config }) +const stack = new cdk.Stack(app, `blueprint-golang-${vsn}`, { ...config }) ``` - [ ] update the target stack name at CI/CD workflows [spawn.yml](.github/workflows/spawn.yml), [build.yml](.github/workflows/build.yml) and [carry.yml](.github/workflows/carry.yml) ```yaml strategy: matrix: - stack: [scud] + stack: [blueprint-golang] ``` - [ ] setup access to AWS account for CI/CD - [ ] integrate api testing diff --git a/cloud/src/index.ts b/cloud/src/index.ts index 3701efd..c7dfae7 100644 --- a/cloud/src/index.ts +++ b/cloud/src/index.ts @@ -21,6 +21,6 @@ const vsn: string = app.node.tryGetContext('vsn') || 'latest' // Stack // // ---------------------------------------------------------------------------- -const stack = new cdk.Stack(app, `scud-${vsn}`, { ...config }) +const stack = new cdk.Stack(app, `blueprint-golang-${vsn}`, { ...config }) pure.join(stack, service)