Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

Commit 448f19e

Browse files
author
Andrew Cai
committed
Add CloudFormation setup guide and create expandable-image
1 parent 33798d8 commit 448f19e

File tree

14 files changed

+97
-5
lines changed

14 files changed

+97
-5
lines changed

content/latest/deploy/public-clouds/aws.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ menu:
1313

1414
<ul class="nav nav-tabs nav-tabs-yb">
1515
<li>
16-
<a href="#terraform" class="nav-link active" id="terraform-tab" data-toggle="tab" role="tab" aria-controls="terraform" aria-selected="true">
16+
<a href="#cloudformation" class="nav-link active" id="cloudformation-tab" data-toggle="tab" role="tab" aria-controls="cloudformation" aria-selected="true">
17+
<i class="icon-shell"></i>
18+
CloudFormation
19+
</a>
20+
</li>
21+
<li>
22+
<a href="#terraform" class="nav-link" id="terraform-tab" data-toggle="tab" role="tab" aria-controls="terraform" aria-selected="true">
1723
<i class="icon-shell"></i>
1824
Terraform
1925
</a>
@@ -27,7 +33,10 @@ menu:
2733
</ul>
2834

2935
<div class="tab-content">
30-
<div id="terraform" class="tab-pane fade show active" role="tabpanel" aria-labelledby="terraform-tab">
36+
<div id="cloudformation" class="tab-pane fade show active" role="tabpanel" aria-labelledby="cloudformation-tab">
37+
{{% includeMarkdown "aws/cloudformation.md" /%}}
38+
</div>
39+
<div id="terraform" class="tab-pane fade" role="tabpanel" aria-labelledby="terraform-tab">
3140
{{% includeMarkdown "aws/terraform.md" /%}}
3241
</div>
3342
<div id="manual-deployment" class="tab-pane fade" role="tabpanel" aria-labelledby="manual-deployment-tab">
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## Prerequisites
2+
3+
Download the template file
4+
```sh
5+
$ wget https://raw.githubusercontent.com/yugabyte/aws-cloudformation/master/yugabyte_cloudformation.yaml
6+
```
7+
8+
## AWS Command Line
9+
10+
Create CloudFormation template:
11+
12+
```sh
13+
$ aws cloudformation create-stack --stack-name <stack-name> --template-body yugabyte_cloudformation.yaml --parameters DBVersion=1.2.8.0, KeyName=<ssh-key-name>
14+
```
15+
Once resource creation completes, check that stack was created:
16+
17+
```sh
18+
$ aws cloudformation describe-stacks --stack-name <stack-name>
19+
```
20+
From this output, you will be able to get the VPC id and YugaByte DB admin URL.
21+
22+
## AWS Console
23+
24+
1. Navigate to your AWS console and open the CloudFormation dashboard. Click `Create Stack`
25+
<img title="Cloud Formation dashboard" class="expandable-image" src="/images/deploy/aws/aws-cf-initial-dashboard.png" />
26+
<br>
27+
2. Prepare template using the downloaded template
28+
<img title="Prepare template" class="expandable-image" src="/images/deploy/aws/aws-cf-prepare-template.png" />
29+
<br>
30+
3. Specify the template file downloaded in Prerequisites: `yugabyte_cloudformation.yaml`
31+
<img title="Upload template" class="expandable-image" src="/images/deploy/aws/aws-cf-upload-template.png" />
32+
<br>
33+
4. Provide the required parameters. Each of these fields are prefilled with information from the configuration yaml file that was uploaded. `LatestAmiId` refers to the id of the machine image to use, see [more](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html).
34+
<img title="Provide Parameters" class="expandable-image" src="/images/deploy/aws/aws-cf-provide-parameters.png" />
35+
<br>
36+
5. Configure Stack options. For more information about these options click [here](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-add-tags.html).
37+
<img title="Configure options" class="expandable-image" src="/images/deploy/aws/aws-cf-configure-options.png" />
38+
<br>
39+
6. Finalize changes before creation
40+
<img title="Review stack" class="expandable-image" src="/images/deploy/aws/aws-cf-review-stack.png" />
41+
<br>
42+
7. Check stack output in dashboard
43+
<img title="Check output" class="expandable-image" src="/images/deploy/aws/aws-cf-check-output.png" />

layouts/_default/single.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ <h1>{{ .Description }} {{ if .IsDraft }} (Draft){{ end }}{{ if .Page.Params.beta
6363
{{ partial "footer_links" . }}
6464
<!--{{ partial "feedback" . }}-->
6565
</article>
66-
66+
<div class="modal fade" id="imageModal" tabindex="-1" role="dialog" aria-labelledby="imageModal" aria-hidden="true">
67+
<div class="modal-dialog" role="document">
68+
<div class="modal-content">
69+
<div class="modal-body">
70+
</div>
71+
</div>
72+
</div>
73+
</div>
6774
<div class="results" role="status" aria-live="polite">
6875
<div class="scrollable">
6976
<div class="wrapper">

src/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ $(document).ready(() => {
128128
},
129129
}).show();
130130

131+
$('.expandable-image').click(function () {
132+
$('#imageModal').modal('show');
133+
$('#imageModal .modal-body').html($(this).clone());
134+
});
135+
136+
$('#imageModal').on('hide.bs.modal', () => {
137+
$('#imageModal .modal-body').html('');
138+
$('#imageModal').hide();
139+
});
140+
131141
((document, Clipboard) => {
132142
const $codes = document.querySelectorAll('pre');
133143
// Check if there's a language class (mark of to-be-copied content)
1.65 MB
Loading
2.63 MB
Loading
1.18 MB
Loading
1.81 MB
Loading
1.61 MB
Loading
2.2 MB
Loading

0 commit comments

Comments
 (0)