This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 1 API Gateway | |
- 1 API Key | |
- 1 API Usage Plan | |
- 2 Lambda Functions | |
- 2 IAM Roles | |
- 1 Lambda Layer | |
- 4 Lambda Permissions (2 for CORS, 2 for GET) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"slackChannelName": "#place-your-channel-name", | |
"slackHookUrl": "https://place-your-hook-url-here" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod +x *.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Sample assumes that random-cluster-1527688624 | |
# is the name of your EKS cluster | |
eksctl delete cluster --name "random-cluster-1527688624" --wait |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
eksctl create cluster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eksctl create cluster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -p 52792:80 --name demo-auth-api demo/authentication-api | |
docker run -d -p 52791:80 --name demo-catalog-api demo/catalog-api | |
docker run -d -p 52790:80 --name demo-ledger-api demo/ledger-api | |
docker run -d -p 52793:80 --name demo-api-gateway demo/gateway-api |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t demo/authentication-api ./Authentication/ | |
docker build -t demo/ledger-api ./Ledger/ | |
docker build -t demo/catalog-api ./Catalog/ | |
docker build -t demo/gateway-api ./Gateway/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker images demo/* | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
demo/gateway-api latest 977e83ddd61e 21 hours ago 131MB | |
demo/catalog-api latest b1f1c235b800 21 hours ago 127MB | |
demo/ledger-api latest 8d33e61eb1b8 21 hours ago 131MB | |
demo/authentication-api latest 16d274785949 21 hours ago 127MB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM microsoft/dotnet:sdk AS build-env | |
WORKDIR /app | |
COPY *.csproj ./ | |
RUN dotnet restore | |
COPY . ./ | |
RUN dotnet publish -c Release -o out | |
# Pay attention to the following two lines |