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
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Deploy using AWS CLI

on:
push:
paths-ignore:
- 'README.md'
branches:
- main
pull_request:
branches:
- main

jobs:
integration-tests:
name: Run Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'

- name: Install dependencies
run: make install

- name: Spin up LocalStack
run: |
make start
make ready
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}

- name: Setup the solutions
run: |
pip install awscli-local
make deploy

- name: Run Integration Tests
run: |
make test
env:
AWS_DEFAULT_REGION: us-east-1
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test

- name: Logs out of LocalStack
if: always()
run: |
make logs
cat logs.txt

- name: Send a Slack notification
if: failure() || github.event_name != 'pull_request'
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
token: ${{ secrets.GITHUB_TOKEN }}
notification_title: "{workflow} has {status_message}"
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

- name: Generate a Diagnostic Report
if: failure()
run: |
curl -s localhost:4566/_localstack/diagnose | gzip -cf > diagnose.json.gz

- name: Upload the Diagnostic Report
if: failure()
uses: actions/upload-artifact@v4
with:
name: diagnose.json.gz
path: ./diagnose.json.gz
17 changes: 17 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Keep Alive
on:
schedule:
- cron: "0 0 * * *"
jobs:
main-job:
name: Main Job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
workflow-keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
33 changes: 6 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@

FIS-experiments/.idea/
route53-failover/.idea/
extension-outages/.idea/

FIS-experiments/volume/
route53-failover/volume/
extension-outages/volume/

FIS-experiments/lambda-functions/.idea/
route53-failover/lambda-functions/.idea/
extension-outages/lambda-functions/.idea/

FIS-experiments/lambda-functions/.aws-sam/
route53-failover/lambda-functions/.aws-sam/
extension-outages/lambda-functions/.aws-sam/


FIS-experiments/lambda-functions/product-lambda.iml
route53-failover/lambda-functions/product-lambda.iml

FIS-experiments/lambda-functions/lambda-functions.iml
route53-failover/lambda-functions/lambda-functions.iml
/extension-outages/terraform/.terraform
/extension-outages/terraform/.terraform.lock.hcl
/extension-outages/terraform/terraform.tfstate

target/
.idea/
.vscode/
.DS_Store
volume/
.pytest_cache/
__pycache__/
Loading