Eximchain / terraform-aws-dappbot

Terraform infrastructure to run ABI Clerk
Other
0 stars 1 forks source link

GitHub Pages infra: account, Action listener #24

Closed Lsquared13 closed 5 years ago

Lsquared13 commented 5 years ago

@Lsquared13 and I spoke today about how the final GitHub pages offering might work. Much of the development would be within the aws-abi-clerk Lambda function, but there would also be some support infrastructure built into the terraform:

  1. The initial CodePipeline created by Lambda function needs to be able to use a company GitHub account to place a commit in the customer's repository
  2. We may need to create a Lambda listener for a GitHub action so we can respond to branch changes without maintaining a constant pipeline.
Lsquared13 commented 5 years ago

CodePipeline doesn't have a GitHub Deploy action so we'll need to write a Lambda function to do it. It seems like there are some GitHub SDKs for Node.

So the initial build pipeline should look like this:

The deployment pipelines should look like this:

Lsquared13 commented 5 years ago

I'm getting the impression that Octokit is the better maintained SDK. Docs are here

github-api is another option but it seems to have less activity and be less well organized

These instructions are for a .NET port of Octokit, but they seem to detail the commit process pretty well.

Lsquared13 commented 5 years ago

Bumped the listener into another issue