Giter Site home page Giter Site logo

nestedcodepipelinesample's Introduction

Nested CodePipeline Sample (Test added at feature branch)

Waning This repository is under constraction!

This is a sample repository for Nexted Codepipeline. As a sample, building both application's and its Infrastracture's codepipeline. Every update to the main branch of this repository triggers to start the entire pipeline. The application's pipeline will be started when there is a change in the image of the ECR repository named myrepo.

Prerequirement

  • An AWS account
  • AWS CLI v2
  • CDK 2

Setup

Create CodeStar Connections to GitHub

Please see: Official Document: Developer Tools console

bootstrap CDK

You need to setup CDK project to target AWS account.

$ export AWS_PROFILE=<AWS_PROFILE | default>
$ export AWS_ACCOUNT_ID=<AWS_ACCOUNT_ID>
$ export AWS_REGION=<AWS_REGION>

And, set the ARN of the CodeStar Connection that will be displayed as a result of the creation in the previous section.

$ export CONNECTION_ARN=<CodeStarConnection>

Then, do the following.

cdk bootstrap -c ConnectionArn=$CONNECTION_ARN aws://$AWS_ACCOUNT_ID/$AWS_REGION

Deploy

Before deploy, check the difference.

$ cdk diff -c ConnectionArn=$CONNECTION_ARN

Then, deploy as the follows.

$ cdk deploy -c ConnectionArn=$CONNECTION_ARN

Pipeline work

Customize

You can change this repository by Forking it and passing it to the context GitHubRepo. Or you can change it permanently by changing the parameter GitHubRepo value in cdk.json.

cdk bootstrap -c GitHubRepo=$YOUR_REPOSITOTY -c ConnectionArn=$CONNECTION_ARN aws://$AWS_ACCOUNT_ID/$AWS_REGION

nestedcodepipelinesample's People

Contributors

siroken3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.