Skip to content

Merge branch 'main' of github.com:docwho2/java-chime-voice-sdk-cdk #7

Merge branch 'main' of github.com:docwho2/java-chime-voice-sdk-cdk

Merge branch 'main' of github.com:docwho2/java-chime-voice-sdk-cdk #7

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Deploy CDK Stack
on:
push:
branches: [ "deploy" ]
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
cache: maven
- name: Set up Node we can install CDK
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install CDK
run: npm install -g aws-cdk
- name: Setup AWS Creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
- name: Deploy Stack with CDK
run: |
ACCOUNT_ID=`aws sts get-caller-identity --query Account --output text`
cdk deploy -c accountId=${ACCOUNT_ID} --all --concurrency=2 --require-approval=never --ci=true