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

Commit c6a52dc

Browse files
committed
port docs from pdf guide
1 parent b359b10 commit c6a52dc

22 files changed

+135
-151
lines changed

docs/images/image1.png

5.93 KB
Loading

docs/images/image2.png

25.4 KB
Loading

docs/images/image3.png

72.9 KB
Loading

docs/images/image4.png

9.93 KB
Loading

docs/images/image5.png

82.5 KB
Loading

docs/images/image6.png

3.22 KB
Loading

docs/images/image7.png

24 KB
Loading

docs/images/image8.png

51.6 KB
Loading

docs/partner_editable/_settings.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
// Do not change this first attribute. Do change the others.
22
:quickstart-team-name: AWS Quick Start team
3-
:quickstart-project-name: quickstart-documentation-base
4-
:partner-product-name: Example Product Name
3+
:quickstart-project-name: quickstart-git2s3
4+
:partner-product-name: Git Webhooks
55
// For the following attribute, if you have no short name, enter the same name as partner-product-name.
6-
:partner-product-short-name: Example Product Name
6+
:partner-product-short-name: Git Webhooks
77
// If there's no partner, comment partner-company-name and partner-contributors.
8-
:partner-company-name: Example Company Name, Ltd.
9-
:doc-month: Month of launch or significant update (spelled out)
10-
:doc-year: Year
8+
// :partner-company-name: Example Company Name, Ltd.
9+
:doc-month: October
10+
:doc-year: 2020
1111
// For the following two "contributor" attributes, if the partner agrees to include names in the byline,
1212
// enter names for both partner-contributors and quickstart-contributors.
1313
// Otherwise, delete all placeholder names: everything preceding "{partner-company-name}"
1414
// and "{quickstart-team-name}". Use commas as shown in the placeholder text.
1515
// Use the comma before "and" only when three or more names.
16-
:partner-contributors: Shuai Ye, Michael McConnell, and John Smith, {partner-company-name}
17-
:quickstart-contributors: Toni Jones, {quickstart-team-name}
16+
// :partner-contributors: Shuai Ye, Michael McConnell, and John Smith, {partner-company-name}
17+
:quickstart-contributors: Kirankumar Chandrashekar and Jay McConnell, Amazon Web Services
1818
// For deployment_time, use minutes if deployment takes an hour or less,
1919
// for example, 30 minutes or 60 minutes.
2020
// Use hours for deployment times greater than 60 minutes (rounded to a quarter hour),
2121
// for example, 1.25 hours, 2 hours, 2.5 hours.
22-
:deployment_time: 15 minutes / 60 minutes / 1.5 hours
23-
:default_deployment_region: us-east-1
22+
:deployment_time: 15 minutes
23+
:default_deployment_region: us-east-2
2424
// Uncomment the following two attributes if you are using an AWS Marketplace listing.
2525
// Additional content will be generated automatically based on these attributes.
2626
// :marketplace_subscription:
Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,47 @@
1-
// Add steps as necessary for accessing the software, post-configuration, and testing. Don’t include full usage instructions for your software, but add links to your product documentation for that information.
2-
//Should any sections not be applicable, remove them
1+
==== Adding an API Secret After Deployment
2+
3+
In some cases, your Git service may provide security mechanisms like API secrets when you create the webhook. In these cases, you can launch the Quick Start with a blank parameter value for the *API Secret* parameter, and then update the stack to provide the value of the parameter. Follow these steps:
4+
5+
. In the https://console.aws.amazon.com/cloudformation[AWS Cloudformation console], select the stack.
6+
7+
[arabic, start=2]
8+
. Choose *Actions*, and then choose *Update Stack*.
9+
. Keep the default to use the current template.
10+
. On the *Specify Details* page, change the *API Secret* parameter setting.
11+
. Choose *Next* twice.
12+
13+
[arabic, start=10]
14+
. Under *Capabilities*, select the check box to acknowledge that the template will create IAM resources, and then choose *Update*.
15+
16+
When the status is *UPDATE_COMPLETE*, the stack has been updated with the webhook secret you specified for security.
317

418
== Test the deployment
5-
// If steps are required to test the deployment, add them here. If not, remove the heading
619

7-
== Post deployment steps
8-
// If Post-deployment steps are required, add them here. If not, remove the heading
20+
Before putting the webhook into production, you should test your deployment.
21+
22+
. Modify a file in your repository.
23+
24+
image:../images/image6.png[../Desktop/Screen_Shot_2017-07-15_at_11_35_57_AM.png,width=529,height=21]
25+
26+
. Commit and push the changes.
27+
28+
image:../images/image7.png[Figure 4,width=648,height=198]
29+
30+
[start=2]
31+
. Wait a few minutes and check your S3 bucket for a new (or updated) object with a key that matches your repository path.
32+
33+
image:../images/image8.png[Figure 5,width=646,height=348]
34+
35+
*Figure 5: Checking for S3 bucket updates after a commit*
936

10-
== Best practices for using {partner-product-short-name} on AWS
11-
// Provide post-deployment best practices for using the technology on AWS, including considerations such as migrating data, backups, ensuring high performance, high availability, etc. Link to software documentation for detailed information.
37+
=== Best Practices
1238

13-
_Add any best practices for using the software._
39+
The architecture built by this Quick Start supports AWS best practices for security.
1440

15-
== Security
16-
// Provide post-deployment best practices for using the technology on AWS, including considerations such as migrating data, backups, ensuring high performance, high availability, etc. Link to software documentation for detailed information.
41+
==== SSH Keys
1742

18-
_Add any security-related information._
43+
SSH keys are generated at stack creation, and are then encrypted using AWS KMS and the encrypted copy stored in Amazon S3. When you use the Git pull endpoint, the private key is fetched by the Lambda function, decrypted, and used to authenticate against your Git service to perform a clone of the repository. We don’t recommend (a) reusing SSH keys for multiple services, or (b) launching another instance of this Quick Start for each repository that you wish to clone to Amazon S3; this ensures that each repository uses unique keys.
1944

20-
== Other useful information
21-
//Provide any other information of interest to users, especially focusing on areas where AWS or cloud usage differs from on-premises usage.
45+
==== Webhook Security
2246

23-
_Add any other details that will help the customer use the software on AWS._
47+
Different Git services provide varying ways to authenticate against an endpoint. The Git pull endpoint supports webhook secrets (used by GitHub Enterprise, GitLab, and other Git repository managers) as well as source IP address whitelisting. The zip download endpoint supports personal access tokens (as used by GitHub Enterprise and GitLab) and OAuth2 (used by Bitbucket). We recommend that you set up at least one of these security mechanisms to protect your webhook API endpoint. For more information about how this Quick Start utilizes these mechanisms, see the parameters in the link:#deployment-steps[Deployment Steps] section of this guide. For product-specific guidance on how to configure these security mechanisms, refer to your Git product’s documentation.

0 commit comments

Comments
 (0)