Skip to content

Commit

Permalink
refactor: refactor infrastructure code for AWS integration
Browse files Browse the repository at this point in the history
- Rename `lambda` to `aws` in `infra.d2`
- Add `aws` styling to `aws` shape in `infra.d2`
- Add `lambda` shape to `aws` in `infra.d2`
- Change connections from `drone` and `github_actions` to `aws` in `infra.d2`

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Apr 2, 2023
1 parent 7a346c0 commit c8428c2
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 91 deletions.
21 changes: 16 additions & 5 deletions infra/infra.d2
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,23 @@ github_actions: GitHub Actions {
}
}

lambda: AWS Lambda{
shape: image
icon: https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg
aws: AWS Cloud VPC {
style: {
stroke: orange
font-color: purple
stroke-dash: 3
fill: white
}
lambda: Lambda{
icon: https://icons.terrastruct.com/aws%2FCompute%2FAWS-Lambda.svg
style.multiple: true
shape: parallelogram
}
}



github -> drone: Drone CI Flow
github -> github_actions: GitHub Action Flow
drone -> lambda
github_actions -> lambda
drone -> aws
github_actions -> aws
Loading

0 comments on commit c8428c2

Please sign in to comment.