Skip to content

Commit

Permalink
Merge branch 'dev' into prod
Browse files Browse the repository at this point in the history
  • Loading branch information
zaro0508 committed Jun 21, 2023
2 parents 2c63998 + bb4a339 commit c5a7b28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
job-environment: "workflows-nextflow-prod"
sceptre-suffix: "prod"
tower-url: "https://tower.sagebionetworks.org"
aws-assume-role-duration: 14400

deploy-ampad:
if: github.ref == 'refs/heads/prod'
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/rw-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
tower-url:
required: true
type: string
aws-assume-role-duration:
required: false
type: number
default: 3600

jobs:
deploy:
Expand All @@ -32,14 +36,14 @@ jobs:
- name: Install dependencies
run: pipenv install --dev

- name: Assume AWS role in dev account
- name: Assume AWS role
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.CI_USER_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.CI_USER_SECRET_ACCESS_KEY }}
aws-region: us-east-1
role-to-assume: ${{ secrets.CI_ROLE_TO_ASSUME }}
role-duration-seconds: 3600
role-duration-seconds: ${{ inputs.aws-assume-role-duration }}

- name: Deploy common configuration
run: >
Expand Down
2 changes: 2 additions & 0 deletions templates/nextflow-efs-file-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Resources:
BackupPolicy:
Status: DISABLED
Encrypted: true
ThroughputMode: provisioned
ProvisionedThroughputInMibps: 1024

SecurityGroup:
Type: AWS::EC2::SecurityGroup
Expand Down

0 comments on commit c5a7b28

Please sign in to comment.