Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit be5a7ef

Browse files
authored
Merge pull request #60 from kirankumar15/main
Documentation update
2 parents 9e0559b + 4a9cfe3 commit be5a7ef

File tree

12 files changed

+30
-14
lines changed

12 files changed

+30
-14
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
## Git webhooks with AWS services
33
### Linking your Git repository to Amazon S3 and AWS services for continuous code integration, testing, and deployment
44

5-
This Quick Start deploys HTTPS endpoints and AWS Lambda functions for implementing webhooks, to enable event-driven integration between Git services and Amazon Web Services (AWS) on the AWS Cloud.
5+
This Quick Start deploys HTTPS endpoints. AWS Lambda functions and AWS CodeBuild project for implementing webhooks, to enable event-driven integration between Git services and Amazon Web Services (AWS) on the AWS Cloud.
66

77
After you deploy the Quick Start, you can set up a webhook that uses the endpoints to create a bridge between your Git repository and AWS services like AWS CodePipeline and AWS CodeBuild. With this setup, builds and pipeline executions occur automatically when you commit your code to a Git repository, and your code can be continuously integrated, tested, built, and deployed on AWS with each change.
88

99
The Quick Start includes an AWS CloudFormation template that automates the deployment. You can also use the AWS CloudFormation template as a starting point for your own implementation.
1010

11-
![Quick Start architecture for implementing webhooks on AWS](https://d0.awsstatic.com/partner-network/QuickStart/datasheets/git-to-s3-webhooks-architecture-on-aws.png)
11+
<!-- ![Quick Start architecture for implementing webhooks on AWS](https://d0.awsstatic.com/partner-network/QuickStart/datasheets/git-to-s3-webhooks-architecture-on-aws.png) -->
12+
13+
![Quick Start architecture for implementing webhooks on AWS](./docs/images/image3.png)
1214

1315
For implementation details, deployment instructions, and customization options, see the [deployment guide](https://fwd.aws/QQBRr).
1416

docs/boilerplate

47.5 KB
Loading

docs/images/image3.png

27.1 KB
Loading

docs/images/image5.png

2.46 KB
Loading

docs/partner_editable/additional_info.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ image:../images/image7.png[Figure 4,width=648,height=198]
3232

3333
image:../images/image8.png[Figure 5,width=646,height=348]
3434

35-
*Figure 5: Checking for S3 bucket updates after a commit*
35+
*Figure 4: Checking for S3 bucket updates after a commit*
3636

3737
=== Best Practices
3838

docs/partner_editable/architecture.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ Deploying this Quick Start builds the following environment in the AWS Cloud.
33
// Replace this example diagram with your own. Send us your source PowerPoint file. Be sure to follow our guidelines here : http://(we should include these points on our contributors giude)
44
:xrefstyle: short
55
[#architecture1]
6-
.Quick Start architecture for {partner-product-short-name} on AWS
6+
// .Quick Start architecture for {partner-product-short-name} on AWS
77
[link=images/architecture_diagram.png]
88
image::../images/image3.png[Architecture,width=100%,height=100%]
9-
Figure 2: Webhook endpoint architecture on AWS
9+
10+
11+
*Figure 2: Webhook endpoint architecture on AWS*
12+
1013

1114
The Quick Start deployment sets up a serverless AWS Cloud environment that includes the following components.
1215

1316
* An API Gateway endpoint to accept the webhook requests from Git.
14-
* Lambda functions to connect to the Git service, either over SSH or through the Git service’s endpoint. These functions zip the code and upload it to Amazon S3.
17+
* Lambda function that processes the input git webhook payload received by the API Gateway and submits a build on AWS CodeBuild Project.
18+
* An AWS CodeBuild project to connect to the Git service, either over SSH or through the Git service’s endpoint. This AWS CodeBuild project will zip the code and upload it to Amazon S3.
1519
16-
*Important* The Lambda functions that are deployed by this Quick Start must be able to communicate with your Git repository. For example, you can use a SaaS-based Git service that the Lambda service can reach through the internet.
20+
*Important* The AWS CodeBuild project that is deployed by this Quick Start must be able to communicate with your Git repository. For example, you can use a SaaS-based Git service that the AWS CodeBuild can reach through the internet.
1721

1822
* An AWS KMS key to encrypt the SSH private key used to connect to the repository over SSH.
1923
* Two S3 buckets: One bucket stores the zipped contents of your Git repository, and the second bucket stores the AWS KMS-encrypted SSH private keys that are generated during stack creation. Note that the first bucket has versioning enabled, and all previous versions are retained indefinitely. If you’d like to manage the retention period for old versions, follow the instructions in the http://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-lifecycle.html[Amazon S3 documentation].

docs/partner_editable/deploy_steps.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ After you have successfully deployed the Quick Start, you can configure the serv
3030

3131
image:../images/image5.png[Figure 4,width=701,height=222]
3232

33-
Figure 4: Outputs tab after deployment
33+
34+
*Figure 3: Outputs tab after deployment*
35+
3436

3537
* *GitPullWebHookApi* is the webhook endpoint to use if you opt for the Git pull method described in the link:#webhook-endpoints[Webhook Endpoints] section of this guide.
36-
* *ZipDownloadWebHookApi* is the webhook endpoint to use if you opt for the zip download method described in the link:#webhook-endpoints[Webhook Endpoints] section of this guide.
3738
* *PublicSSHKey* is the public SSH key that you use to connect to your repository if you’re using the Git pull endpoint. This key can be configured as a read-only machine user or as a deployment key in your Git service.
3839

3940
The exact process to set up webhooks differs from service to service. For step-by-step instructions, consult your Git service’s documentation.

docs/partner_editable/faq_troubleshooting.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ If your commits are not being pushed through to Amazon S3, check the following:
1717
* In your Git service’s webhooks configuration, check that your configured security parameters and the endpoint are correct. Consult the Git service documentation for detailed guidance on configuration.
1818
* Check the Lambda logs for errors. These are stored in Amazon CloudWatch Logs. To access the logs, open the endpoint’s Lambda function in the AWS console, navigate to the *Monitoring* tab, and then choose *View logs in CloudWatch*.
1919

20+
For additional information, see https://docs.aws.amazon.com/lambda/latest/dg/lambda-troubleshooting.html[Troubleshooting issues in AWS Lambda^] on the AWS website.
21+
22+
* Check the AWS CodeBuild project logs for errors. These are stored in Amazon CloudWatch Logs. To access the logs, open the endpoint’s CodeBuild Build Project in the AWS console, select a *Build run* and click on the hyperlink and navigate to the *Build logs* tab to see the build execution logs.
23+
24+
For additional information, see https://docs.aws.amazon.com/codebuild/latest/userguide/troubleshooting.html[Troubleshooting AWS CodeBuild^] on the AWS website.
25+
2026
== Additional Resources
2127

2228
=== AWS services
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The Quick Start provides an Amazon API Gateway endpoint and several Lambda functions to handle the download, zipping, and deployment of code to Amazon S3. AWS CodePipeline carries a cost for each active pipeline; see https://aws.amazon.com/codepipeline/pricing/[AWS CodePipeline pricing]. Depending on your configuration, the Quick Start may deploy an AWS Key Management Service (AWS KMS) key; for pricing, see https://aws.amazon.com/kms/pricing/[AWS Key Management Service pricing]. API Gateway, Amazon S3, and Lambda costs vary depending on how often you commit code to your repository; each commit triggers a request to the Lambda execution in API Gateway; for details, see the pricing pages for https://aws.amazon.com/api-gateway/pricing/[API Gateway], https://aws.amazon.com/s3/pricing/[Amazon S3], and https://aws.amazon.com/lambda/pricing/[Lambda].
1+
The Quick Start provides an Amazon API Gateway endpoint, several Lambda functions and an AWS CodeBuild project to handle the download, zipping, and deployment of code to Amazon S3. AWS CodePipeline carries a cost for each active pipeline; see https://aws.amazon.com/codepipeline/pricing/[AWS CodePipeline pricing]. Depending on your configuration, the Quick Start may deploy an AWS Key Management Service (AWS KMS) key; for pricing, see https://aws.amazon.com/kms/pricing/[AWS Key Management Service pricing]. API Gateway, Amazon S3, Lambda, and AWS CodeBuild costs vary depending on how often you commit code to your repository; each commit triggers a request to the Lambda execution in API Gateway; for details, see the pricing pages for https://aws.amazon.com/api-gateway/pricing/[API Gateway], https://aws.amazon.com/s3/pricing/[Amazon S3], https://aws.amazon.com/lambda/pricing/[Lambda] and https://aws.amazon.com/codebuild/pricing/[codebuild] .

0 commit comments

Comments
 (0)