Skip to content

Commit

Permalink
Update instructions for internet connectivity (#161)
Browse files Browse the repository at this point in the history
update the other instructinos with veryify steps
  • Loading branch information
vordimous authored Dec 30, 2023
1 parent ba65c27 commit dfca551
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 22 deletions.
55 changes: 48 additions & 7 deletions src/how-tos/amazon-msk/secure-public-access/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ Follow the [Create Security Group](https://console.aws.amazon.com/vpcconsole/hom
- Add Inbound Rule
- Type: `SSH`
- Source type: `My IP`
- Add Outbound Rule (if not exists)
- Type: `All traffic`
- Destination: `Anywhere-IPv4`

### Update the default security group rules

Expand Down Expand Up @@ -276,23 +279,61 @@ ssh -i ~/.ssh/<key-pair.cer> ec2-user@<instance-public-ip-address>

After logging in via SSH, check the status of the `zilla-plus` system service.

::: tabs

@tab Service is running

Verify that the `zilla-plus` service is active and logging output similar to that shown below.

```bash:no-line-numbers
systemctl status zilla-plus.service
```

Verify that the `zilla-plus` service is active and logging output similar to that shown below.

```output:no-line-numbers
zilla-plus.service - Zilla Plus
Loaded: loaded (/etc/systemd/system/zilla-plus.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-08-24 20:56:51 UTC; 1 day 19h ago
Main PID: 1803 (java)
CGroup: /system.slice/zilla-plus.service
└─...
Active: active (running) since...
```

@tab Check Ports

Aug 26 06:56:54 ip-10-0-3-104.ec2.internal zilla[1803]: Recorded usage for record id ...
Check for the active ports with `netstat`.

```bash:no-line-numbers
netstat -ntlp
```

```output:no-line-numbers
tcp6 0 0 :::9092 :::* LISTEN 1726/.zpm/image/bin
```

@tab Check Zilla Logs

You can get an stdout dump of the `zilla-plus.service` using `journalctl`.

```bash:no-line-numbers
journalctl -e -u zilla-plus.service | tee -a /tmp/zilla.log
```

```output:no-line-numbers
systemd[1]: Started zilla-plus.service - Zilla Plus.
...
```

@tab Check Cloud Init Logs

All output from cloud-init is captured by default to `/var/log/cloud-init-output.log`. There shouldn't be any errors in this log.

```bash:no-line-numbers
cat /var/log/cloud-init-output.log
```

```output:no-line-numbers
Cloud-init v. 22.2.2 running 'init'...
```

:::

Repeat these steps for each of the other <ZillaPlus/> proxies launched by the CloudFormation template.

## Verify Kafka Client Connectivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ Follow the [Create Security Group](https://console.aws.amazon.com/vpcconsole/hom
- Add Inbound Rule
- Type: `SSH`
- Source type: `My IP`
- Add Outbound Rule (if not exists)
- Type: `All traffic`
- Destination: `Anywhere-IPv4`

### Update the default security group rules

Expand Down Expand Up @@ -308,25 +311,64 @@ Find the `Public IPv4 Address` and then SSH into the instance.
ssh -i ~/.ssh/<key-pair.cer> ec2-user@<instance-public-ip-address>
```


After logging in via SSH, check the status of the `zilla-plus` system service.

::: tabs

@tab Service is running

Verify that the `zilla-plus` service is active and logging output similar to that shown below.

```bash:no-line-numbers
systemctl status zilla-plus.service
```

Verify that the `zilla-plus` service is active and logging output similar to that shown below.

```output:no-line-numbers
zilla-plus.service - Zilla Plus
Loaded: loaded (/etc/systemd/system/zilla-plus.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-08-24 20:56:51 UTC; 1 day 19h ago
Main PID: 1803 (java)
CGroup: /system.slice/zilla-plus.service
└─...
Active: active (running) since...
```

@tab Check Ports

Check for the active ports with `netstat`.

```bash:no-line-numbers
netstat -ntlp
```

```output:no-line-numbers
tcp6 0 0 :::9092 :::* LISTEN 1726/.zpm/image/bin
```

Aug 26 06:56:54 ip-10-0-3-104.ec2.internal zilla[1803]: Recorded usage for record id ...
@tab Check Zilla Logs

You can get an stdout dump of the `zilla-plus.service` using `journalctl`.

```bash:no-line-numbers
journalctl -e -u zilla-plus.service | tee -a /tmp/zilla.log
```

```output:no-line-numbers
systemd[1]: Started zilla-plus.service - Zilla Plus.
...
```

@tab Check Cloud Init Logs

All output from cloud-init is captured by default to `/var/log/cloud-init-output.log`. There shouldn't be any errors in this log.

```bash:no-line-numbers
cat /var/log/cloud-init-output.log
```

```output:no-line-numbers
Cloud-init v. 22.2.2 running 'init'...
```

:::

Repeat these steps for each of the other <ZillaPlus/> proxies launched by the CloudFormation template.

### Configure Global DNS
Expand Down
56 changes: 49 additions & 7 deletions src/how-tos/amazon-msk/secure-public-access/production.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ Follow the [Create Security Group](https://console.aws.amazon.com/vpcconsole/hom
- Add Inbound Rule
- Type: `SSH`
- Source type: `My IP`
- Add Outbound Rule (if not exists)
- Type: `All traffic`
- Destination: `Anywhere-IPv4`

### Update the default security group rules

Expand Down Expand Up @@ -282,25 +285,64 @@ Find the `Public IPv4 Address` and then SSH into the instance.
ssh -i ~/.ssh/<key-pair.cer> ec2-user@<instance-public-ip-address>
```


After logging in via SSH, check the status of the `zilla-plus` system service.

::: tabs

@tab Service is running

Verify that the `zilla-plus` service is active and logging output similar to that shown below.

```bash:no-line-numbers
systemctl status zilla-plus.service
```

Verify that the `zilla-plus` service is active and logging output similar to that shown below.

```output:no-line-numbers
zilla-plus.service - Zilla Plus
Loaded: loaded (/etc/systemd/system/zilla-plus.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2021-08-24 20:56:51 UTC; 1 day 19h ago
Main PID: 1803 (java)
CGroup: /system.slice/zilla-plus.service
└─...
Active: active (running) since...
```

@tab Check Ports

Check for the active ports with `netstat`.

```bash:no-line-numbers
netstat -ntlp
```

```output:no-line-numbers
tcp6 0 0 :::9092 :::* LISTEN 1726/.zpm/image/bin
```

Aug 26 06:56:54 ip-10-0-3-104.ec2.internal zilla[1803]: Recorded usage for record id ...
@tab Check Zilla Logs

You can get an stdout dump of the `zilla-plus.service` using `journalctl`.

```bash:no-line-numbers
journalctl -e -u zilla-plus.service | tee -a /tmp/zilla.log
```

```output:no-line-numbers
systemd[1]: Started zilla-plus.service - Zilla Plus.
...
```

@tab Check Cloud Init Logs

All output from cloud-init is captured by default to `/var/log/cloud-init-output.log`. There shouldn't be any errors in this log.

```bash:no-line-numbers
cat /var/log/cloud-init-output.log
```

```output:no-line-numbers
Cloud-init v. 22.2.2 running 'init'...
```

:::

Repeat these steps for each of the other <ZillaPlus/> proxies launched by the CloudFormation template.

### Configure Global DNS
Expand Down
17 changes: 16 additions & 1 deletion src/how-tos/confluent-cloud/secure-public-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ Make sure you have selected the desired region, such as `US East (N. Virginia) u
- Add Inbound Rule
- Type: `SSH`
- Source type: `My IP`
- Add Outbound Rule (if not exists)
- Type: `All traffic`
- Destination: `Anywhere-IPv4`
- Create the Security Group

Navigate to the VPC Management Console [Security Groups](https://console.aws.amazon.com/vpc/home#securityGroups:) table. Select the `my-zilla-proxy-sg` security group you just created. You will create an inbound rule to allow all traffic inside itself.
Expand Down Expand Up @@ -327,7 +330,7 @@ netstat -ntlp
tcp6 0 0 :::9092 :::* LISTEN 1726/.zpm/image/bin
```

@tab Check Logs
@tab Check Zilla Logs

You can get an stdout dump of the `zilla-plus.service` using `journalctl`.

Expand All @@ -340,6 +343,18 @@ systemd[1]: Started zilla-plus.service - Zilla Plus.
...
```

@tab Check Cloud Init Logs

All output from cloud-init is captured by default to `/var/log/cloud-init-output.log`. There shouldn't be any errors in this log.

```bash:no-line-numbers
cat /var/log/cloud-init-output.log
```

```output:no-line-numbers
Cloud-init v. 22.2.2 running 'init'...
```

:::

Repeat these steps for each of the other <ZillaPlus/> proxies launched by the CloudFormation template.
Expand Down
3 changes: 3 additions & 0 deletions src/reference/aws/launch-ec2-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Filter the security groups by selecting a `VPC` and select the `default` securit
- Add Inbound Rule
- Type: `SSH`
- Source type: `My IP`
- Add Outbound Rule (if not exists)
- Type: `All traffic`
- Destination: `Anywhere-IPv4`

::: info
This makes the launched EC2 instance accessible via `SSH`.
Expand Down

0 comments on commit dfca551

Please sign in to comment.