Skip to content

Commit b15f4c0

Browse files
BillFarberStuart Moorhouse
and
Stuart Moorhouse
authored
Develop (#26)
* Updating the AWS quickstart document. * Update AWS-CloudFormation/cloudFormationTemplates/* with newer AMI, added some steps to CloudFormation-QuickStart.md Co-authored-by: Stuart Moorhouse <[email protected]>
1 parent 8706e49 commit b15f4c0

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

AWS-CloudFormation/CloudFormation-QuickStart.md

+28-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,27 @@ _All the resource files have been configure and compiled specifically for this e
88
In particular, IP addresses are in the config files._
99

1010
## Requirements
11-
* You just need to have an AWS account.
11+
* You need to have an AWS account
12+
* You need to have subscribed to the [MarkLogic AMI](https://aws.amazon.com/marketplace/pp/B072Z536VB?ref_=aws-mp-console-subscription-detail)
13+
* You need to have subscribed to the [Kafka Certified by Bitnami AMI](https://aws.amazon.com/marketplace/pp/B01K0IWPVI?qid=1587125714910&sr=0-1&ref_=srh_res_product_title)
1214

1315
## Create a Key Pair in AWS
14-
1. Navigate to your [AWS Key Pairs](https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#KeyPairs:sort=keyName)
16+
Please note: if you are using the default values in the resource files, you will need to be in the us-east-1 (Virginia) region when you follow these steps.
17+
18+
1. Navigate to your [AWS Key Pairs](https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#KeyPairs:sort=keyName).
19+
1520
1. Click "Create Key Pair".
21+
1622
1. Name the Key Pair, 'kafka', and click "Create".
23+
1724
1. When prompted, save the PEM file locally.
1825

26+
1. Change the file permissions on the PEM file:
27+
28+
```
29+
chmod 400 kafka.pem
30+
```
31+
1932
## Build the AWS Resources
2033
1. Navigate to the [AWS CloudFormation](https://console.aws.amazon.com/cloudformation/home?region=us-east-1) page.
2134
1. Click "Create Stack"
@@ -29,7 +42,7 @@ In particular, IP addresses are in the config files._
2942
1. Now wait until initialization is complete.
3043

3144
## Start the Connector
32-
1. On the list of you AWS Instances, click on the instance named, "TemplateBased-Kafka-Worker-A".
45+
1. On the list of your AWS Instances, click on the instance named, "instanceKafkaWorkerA".
3346
1. Copy the Public DNS (IPv4).
3447
1. Ssh to the TemplateBased-Kafka-Worker-A server.
3548
`ssh -i kafka.pem bitnami@<Public DNS>`
@@ -38,9 +51,20 @@ In particular, IP addresses are in the config files._
3851

3952
## Generate some Messages
4053
This step uses the JAR file from a small project for producing test messages. It can be found in [my GitHub account](https://github.com/BillFarber/KafkaProducer)
41-
1. On the list of you AWS Instances, click on the instance named, "TemplateBased-Kafka-Worker-A".
54+
1. On the list of your AWS Instances, click on the instance named, "instanceKafkaWorkerA".
4255
1. Copy the Public DNS (IPv4).
4356
1. Ssh to the TemplateBased-Kafka-Worker-A server.
4457
`ssh -i kafka.pem bitnami@<Public DNS>`
4558
1. Send some messages to the Kafka topic
4659
`java -jar /home/bitnami/kafka-producer-1.0-SNAPSHOT.jar -c 4 -m 5 -h ip-172-31-48-44.ec2.internal:9092 -t marklogic`
60+
61+
## View the Messages in MarkLogic
62+
63+
1. On the list of your AWS instances, click on the instance named "instanceMarkLogicA".
64+
2. Copy the Public DNS (IPv4)
65+
3. In a browser, open the page http://\<public DNS>:8000
66+
* Enter the username "admin"
67+
* Enter the password "admin"
68+
69+
4. In the QConsole UI, change the *Database* to "Kafka"
70+
5. Click *Explore* to view the documents you created from "Kafka-Worker-A"

AWS-CloudFormation/cloudFormationTemplates/justTheResources.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"DisableApiTermination": "false",
7373
"InstanceInitiatedShutdownBehavior": "stop",
7474
"EbsOptimized": "true",
75-
"ImageId": "ami-0ceaecbf456a666a4",
75+
"ImageId": "ami-0879bd2e59cecb73e",
7676
"InstanceType": "c5.large",
7777
"KeyName": "kafka",
7878
"Monitoring": "false",
@@ -116,7 +116,7 @@
116116
"Properties": {
117117
"DisableApiTermination": "false",
118118
"InstanceInitiatedShutdownBehavior": "stop",
119-
"ImageId": "ami-07ae0cb249ac8f87a",
119+
"ImageId": "ami-0879bd2e59cecb73e",
120120
"InstanceType": "t2.large",
121121
"KeyName": "kafka",
122122
"Monitoring": "false",

AWS-CloudFormation/cloudFormationTemplates/readyToGo.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"Properties": {
7272
"DisableApiTermination": "false",
7373
"InstanceInitiatedShutdownBehavior": "stop",
74-
"ImageId": "ami-07ae0cb249ac8f87a",
74+
"ImageId": "ami-0879bd2e59cecb73e",
7575
"InstanceType": "t2.large",
7676
"KeyName": "kafka",
7777
"Monitoring": "false",
@@ -127,7 +127,7 @@
127127
"Properties": {
128128
"DisableApiTermination": "false",
129129
"InstanceInitiatedShutdownBehavior": "stop",
130-
"ImageId": "ami-07ae0cb249ac8f87a",
130+
"ImageId": "ami-0879bd2e59cecb73e",
131131
"InstanceType": "t2.large",
132132
"KeyName": "kafka",
133133
"Monitoring": "false",

0 commit comments

Comments
 (0)