Skip to content

Commit

Permalink
fix: revert stream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mogusbi committed Dec 22, 2024
1 parent 93fe994 commit 40effdf
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 32 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/deploy-to-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy ID infrastructure
run: yarn workspace @id/infrastructure deploy --stage $STAGE --force
run: yarn workspace @id/infrastructure deploy --stage $STAGE

- name: Build ID client
run: yarn workspace @id/client build
Expand All @@ -154,7 +154,7 @@ jobs:
run: yarn workspace @id/emails build

- name: Deploy client
run: yarn workspace @id/client deploy --stage $STAGE --force
run: yarn workspace @id/client deploy --stage $STAGE

- name: Deploy to Auth0
run: yarn workspace @id/tenant deploy -c config.json
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
- name: Deploy
uses: nick-fields/retry@v3.0.0
with:
command: yarn workspace @core/anti-virus deploy --stage $STAGE --force
command: yarn workspace @core/anti-virus deploy --stage $STAGE
max_attempts: 3
on_retry_command: yarn workspace @core/anti-virus clean
retry_on: error
Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @cypress/api deploy --stage $STAGE --force
run: yarn workspace @cypress/api deploy --stage $STAGE

# Accounts (queue)
accounts-queue:
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/queue deploy --stage $STAGE --force
run: yarn workspace @accounts/queue deploy --stage $STAGE

# Accounts (storage)
accounts-storage:
Expand Down Expand Up @@ -444,7 +444,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/storage deploy --stage $STAGE --force
run: yarn workspace @accounts/storage deploy --stage $STAGE

# Accounts (data)
accounts-data:
Expand Down Expand Up @@ -514,7 +514,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/data deploy --stage $STAGE --force
run: yarn workspace @accounts/data deploy --stage $STAGE

# Accounts (notifications)
accounts-notifications:
Expand Down Expand Up @@ -583,7 +583,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/notifications deploy --stage $STAGE --force
run: yarn workspace @accounts/notifications deploy --stage $STAGE

# Accounts (reports)
accounts-reports:
Expand Down Expand Up @@ -655,7 +655,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/reports deploy --stage $STAGE --force
run: yarn workspace @accounts/reports deploy --stage $STAGE

# Accounts (API)
accounts-api:
Expand Down Expand Up @@ -739,4 +739,4 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/api deploy --stage $STAGE --force
run: yarn workspace @accounts/api deploy --stage $STAGE
28 changes: 14 additions & 14 deletions .github/workflows/deploy-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy ID infrastructure
run: yarn workspace @id/infrastructure deploy --stage $STAGE --force
run: yarn workspace @id/infrastructure deploy --stage $STAGE

- name: Build ID client
run: yarn workspace @id/client build
Expand All @@ -235,7 +235,7 @@ jobs:
run: yarn workspace @id/emails build

- name: Deploy client
run: yarn workspace @id/client deploy --stage $STAGE --force
run: yarn workspace @id/client deploy --stage $STAGE

- name: Deploy to Auth0
run: yarn workspace @id/tenant deploy -c config.json
Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
- name: Deploy
uses: nick-fields/retry@v3.0.0
with:
command: yarn workspace @core/anti-virus deploy --stage $STAGE --force
command: yarn workspace @core/anti-virus deploy --stage $STAGE
max_attempts: 3
on_retry_command: yarn workspace @core/anti-virus clean
retry_on: error
Expand Down Expand Up @@ -376,10 +376,10 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy core infrastructure
run: yarn workspace @core/infrastructure deploy --stage $STAGE --force
run: yarn workspace @core/infrastructure deploy --stage $STAGE

- name: Deploy comms infrastructure
run: yarn workspace @core/comms deploy --stage $STAGE --force
run: yarn workspace @core/comms deploy --stage $STAGE

deploy-accounts-storage:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -444,7 +444,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/storage deploy --stage $STAGE --force
run: yarn workspace @accounts/storage deploy --stage $STAGE

deploy-accounts-queue:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -511,7 +511,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/queue deploy --stage $STAGE --force
run: yarn workspace @accounts/queue deploy --stage $STAGE

deploy-accounts-data:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -576,7 +576,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/data deploy --stage $STAGE --force
run: yarn workspace @accounts/data deploy --stage $STAGE

deploy-accounts-warm-up:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -641,7 +641,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/warm-up deploy --stage $STAGE --force
run: yarn workspace @accounts/warm-up deploy --stage $STAGE

deploy-accounts-reports:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -709,7 +709,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/reports deploy --stage $STAGE --force
run: yarn workspace @accounts/reports deploy --stage $STAGE

deploy-accounts-api:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -787,7 +787,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/api deploy --stage $STAGE --force
run: yarn workspace @accounts/api deploy --stage $STAGE

deploy-accounts-infrastructure:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -851,7 +851,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/infrastructure deploy --stage $STAGE --force
run: yarn workspace @accounts/infrastructure deploy --stage $STAGE

deploy-accounts-notifications:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -915,7 +915,7 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/notifications deploy --stage $STAGE --force
run: yarn workspace @accounts/notifications deploy --stage $STAGE

build-accounts-client:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -1003,4 +1003,4 @@ jobs:
role-to-assume: arn:aws:iam::633331859210:role/github-actions

- name: Deploy
run: yarn workspace @accounts/client deploy
run: yarn workspace @accounts/client deploy
2 changes: 0 additions & 2 deletions applications/accounts/api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ functions:
- stream:
type: dynamodb
arn: !ImportValue ${self:provider.stage}-AccountsApplicationTableStreamArn
batchSize: 20
startingPosition: LATEST
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
Expand All @@ -383,7 +382,6 @@ functions:
- stream:
type: dynamodb
arn: !ImportValue ${self:provider.stage}-AccountsApplicationTableStreamArn
batchSize: 20
startingPosition: LATEST
environment:
ENDPOINT: ${appsync:url}
Expand Down
6 changes: 0 additions & 6 deletions applications/accounts/data/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ functions:
- stream:
type: dynamodb
arn: !GetAtt ApplicationTable.StreamArn
batchSize: 20
startingPosition: LATEST
environment:
ATTACHMENT_QUEUE: !ImportValue ${self:provider.stage}-DeleteFileQueueUrl
Expand All @@ -65,7 +64,6 @@ functions:
- stream:
type: dynamodb
arn: !GetAtt ApplicationTable.StreamArn
batchSize: 20
startingPosition: LATEST
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
Expand All @@ -78,7 +76,6 @@ functions:
- stream:
type: dynamodb
arn: !GetAtt ApplicationTable.StreamArn
batchSize: 20
startingPosition: LATEST
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
Expand All @@ -91,7 +88,6 @@ functions:
- stream:
type: dynamodb
arn: !GetAtt ApplicationTable.StreamArn
batchSize: 20
startingPosition: LATEST
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
Expand All @@ -105,7 +101,6 @@ functions:
- stream:
type: dynamodb
arn: !GetAtt ApplicationTable.StreamArn
batchSize: 20
startingPosition: LATEST
environment:
SENTRY_DSN: ${env:SENTRY_DSN}
Expand All @@ -118,7 +113,6 @@ functions:
- stream:
type: dynamodb
arn: !GetAtt ApplicationTable.StreamArn
batchSize: 20
startingPosition: LATEST
environment:
TABLE: !Ref ApplicationTable
Expand Down

0 comments on commit 40effdf

Please sign in to comment.