GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DataLearns/infrastructure-cicd-data-engineering: Learn practical CI/CD patterns for deploying data infrastructure changes, with an end-to-end example using GitHub Actions and AWS.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
terraform
terraform
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
actions-secret.png
actions-secret.png
 
 
create-production-environment.png
create-production-environment.png
 
 
production-review_rule.png
production-review_rule.png
 
 
tear-down.sh
tear-down.sh
 
 

Repository files navigation

  • README
    • Setup
      • Prerequisites
      • Bootstrap
      • Grant GitHub Access Permission to Deploy to AWS
      • Create a GitHub Environment
    • CI checks
    • Destroy

README

Code for the blog: How to set up CI/CD for data infrastructure

Setup

Prerequisites

  1. AWS & Terraform setup
  2. GitHub Account

Bootstrap

We need to create our state S3 backend and ODIC (for GitHub Actions to deploy to AWS). We have them defined at ./terraform/bootstrap/main.tf.

Apply them as shown below

terraform -chdir=terraform/bootstrap init
terraform -chdir=terraform/bootstrap apply
terraform -chdir=terraform/bootstrap output
# you will see your S3 backend and AWS ARN

Grant GitHub Access Permission to Deploy to AWS

Create a repo secret and call it AWS_ROLE_ARN. The value must be the output from the bootstrap output command in the bootstrap section.

Create Repo Secret

Note

When copy-pasting the ARN, do not copy the quotes.

Create a GitHub Environment

We use GitHub environment to force manual review. Create this by going to settings -> environment in this repo.

Create a production environment

Add a review rule requiring atleast one manual review.

Add a production review rule for manual review

CI checks

Our CI process checks .tf file formats, but does not fix it. Make sure to run the below command before you push your changes to your PR/branch.

terraform -chdir=terraform fmt -recursive

Destroy

After you are done, do not forget to destroy all the resources. We have a handy script to do that for you.

./tear-down.sh

About

Learn practical CI/CD patterns for deploying data infrastructure changes, with an end-to-end example using GitHub Actions and AWS.

www.startdataengineering.com/post/infrastructure-cicd-data-engineering/

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.