hackforla / lucky-parking

Visualization of parking data to assist in understanding of the effects of parking policies on a neighborhood by neighborhood basis in the City of Los Angeles
https://www.hackforla.org/projects/lucky-parking.html
34 stars 60 forks source link

Cicd #600

Closed Andrewgl22 closed 9 months ago

Andrewgl22 commented 9 months ago

Description

I have created a CI/CD pipeline utilizing Github Actions, AWS CDK, Docker, and Elastic Beanstalk. It has multiple steps:

  1. Github Actions triggers the Docker CDK stack. This creates the docker image and uploads to AWS ECR. A Dockerrun.json file is created with the address of the image. This file is stored in an S3 bucket and is passed as input into the next stack.
  2. Github Actions triggers the EB stack. This creates the Elastic Beanstalk Environment, Version, and App, and utilizes the dockerun.json file to connect the correct docker image to EB.

Flow chart:

CICD_Diagram

Currently there is no action for testing. I am also having an issue passing inputs from one github action to the next, so dockerrun file is not passing correctly into the eb cdk stack.

I have tested this pipeline on my own test account with my own credentials. It will need to be reconfigured for a lucky parking AWS user account. The main env variables that will be required are the AWS Access and Secret Keys, and the AWS Region. You may also have to create a permissions policy for the user before utilizing the pipeline.

Related Issues

Resolves #ISSUE_NUMBER

Testing

Checklist

netlify[bot] commented 9 months ago

Deploy Preview for lucky-parking-staging-storybook failed.

Name Link
Latest commit d6c3f4da42df59d8415b854bf59b544c6ffdfea1
Latest deploy log https://app.netlify.com/sites/lucky-parking-staging-storybook/deploys/655e8cef5eb7360008717809
netlify[bot] commented 9 months ago

Deploy Preview for lucky-parking-staging failed.

Name Link
Latest commit d6c3f4da42df59d8415b854bf59b544c6ffdfea1
Latest deploy log https://app.netlify.com/sites/lucky-parking-staging/deploys/655e8cef0036ab00081f84dd