Skip to content

haandol/picapica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PicaPica - Replicate Cross Regional CodeCommit Repositories

This repository is for replicating codecommit repositories across regions on the same account

Running this repository may cost you to provision AWS resources

Prerequisites

  • Nodejs 14.x
  • AWS Account and Locally configured AWS credential

Installation

Install project dependencies

$ npm i -g aws-cdk
$ npm i
$ cdk bootstrap

Usage

Setup config

Fill lib/interfaces/config.ts

$ vim lib/interfaces/config.ts

In order to check out your Account run below,

$ aws sts get-caller-identity --query "Account" --out text
012345678901

Set Region variable where your source repository is placed.

Deploy CDK Stacks on AWS

YOU SHOULD DEPLOY THIS CDK PROJECT ON THE SOURCE REGION use profile or something

$ cdk deploy "*" --require-approval never

Done!

Commit & push some code to source-repository and visit CodeBuild Project console to check out build progress.

Cleanup

destroy provisioned cloud resources

$ cdk destroy "*"

About

replicate cross regional codecommits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published