Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub action to deploy to AWS after successful build #10

Open
msailes opened this issue Jul 26, 2022 · 1 comment
Open

Add GitHub action to deploy to AWS after successful build #10

msailes opened this issue Jul 26, 2022 · 1 comment

Comments

@msailes
Copy link
Contributor

msailes commented Jul 26, 2022

Create a GitHub action to deploy the infrastructure defined in the CDK code to AWS after a successful build.

@elenavanengelenmaslova
Copy link

elenavanengelenmaslova commented Nov 2, 2022

I can create a Pull request for this if you like, I do need the gitHub actions secret key names for
aws_access_key
aws_secret_key
aws_region
aws_account_id

its looks something like this:
`steps:
- uses: actions/checkout@v2

  - name: Download Artifacts
    uses: actions/download-artifact@v2
    with:
      name: LambdaArtifacts
      path: build/dist/

  - uses: actions/setup-node@v2
    with:
      node-version: "14"
  - name: Configure aws credentials
    uses: aws-actions/configure-aws-credentials@master
    with:
      aws-access-key-id: ${{ secrets.aws_access_key }}
      aws-secret-access-key: ${{ secrets.aws_secret_key }}
      aws-region: ${{ inputs.aws_region }}

  - name: DEPLOY synthesize & deploy
    run: |
      cd ${GITHUB_WORKSPACE}/infrastructure
      npm install -g aws-cdk
      cdk deploy`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants