Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
it:
strategy:
matrix:
stack: [scud]
stack: [blueprint-golang]
runs-on: ubuntu-latest
steps:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/carry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
it:
strategy:
matrix:
stack: [scud]
stack: [blueprint-golang]
runs-on: ubuntu-latest
steps:

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
it:
strategy:
matrix:
stack: [scud]
stack: [blueprint-golang]
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spawn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
it:
strategy:
matrix:
stack: [scud]
stack: [blueprint-golang]
runs-on: ubuntu-latest
if: github.event.label.name == '[@] deploy'
steps:
Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cloud/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)