Skip to content

add workflow

add workflow #6

Workflow file for this run

on: [push]
jobs:
aws_cdk:
runs-on: ubuntu-latest
steps:
- name: cdk bootstrap
uses: youyo/aws-cdk-github-actions
with:
cdk_subcommand: "bootstrap"
cdk_stack: "stack1"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
- name: cdk diff
uses: youyo/aws-cdk-github-actions
with:
cdk_subcommand: "diff"
cdk_stack: "stack1"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
- name: cdk synth
uses: youyo/aws-cdk-github-actions
with:
cdk_subcommand: "synth"
cdk_stack: "stack1"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"
- name: cdk deploy
uses: youyo/aws-cdk-github-actions
with:
cdk_subcommand: "deploy"
cdk_stack: "stack1"
cdk_extra_args: >-
--progress events
--require-approval never
--parameters environment=${{ secrets.ENVIRONMENT }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"