|
| 1 | +--- |
| 2 | +shortTitle: AWS AMI |
| 3 | +--- |
| 4 | + |
| 5 | +# Deploying Zilla Plus via AWS AMI |
| 6 | + |
| 7 | +[Available in Zilla Plus](https://www.aklivity.io/products/zilla-plus) |
| 8 | +{.zilla-plus-badge .hint-container .info} |
| 9 | + |
| 10 | +## Overview |
| 11 | + |
| 12 | +The [Zilla Plus](https://aws.amazon.com/marketplace/seller-profile?id=b9df13e8-d3bc-41d1-bf8a-4a07aaa96e62) is an enterprise-ready, Kafka-native edge, and service proxy. It is a flexible, secure, and reliable way of creating stateless, multi-protocol API entry points into your Kafka cluster for both native and non-native Kafka clients. |
| 13 | + |
| 14 | +This Guide will walk you through deploying Zilla Plus service using **AWS AMI**. |
| 15 | + |
| 16 | +## Subscribe via AWS Marketplace |
| 17 | + |
| 18 | +To launch a Zilla Plus instance, a subscription to the [Zilla Plus product on Amazon Marketplace](https://aws.amazon.com/marketplace/seller-profile?id=b9df13e8-d3bc-41d1-bf8a-4a07aaa96e62) is required. |
| 19 | + |
| 20 | +- To get started, visit the AWS Marketplace [Product Page](https://aws.amazon.com/marketplace/seller-profile?id=b9df13e8-d3bc-41d1-bf8a-4a07aaa96e62) |
| 21 | +- `Subscribe` to the appropriate **Zilla Plus** edition: |
| 22 | + - [Zilla Plus for Amazon MSK](https://aws.amazon.com/marketplace/pp/prodview-jshnzslazfm44) |
| 23 | + - [Zilla Plus for Confluent Cloud](https://aws.amazon.com/marketplace/pp/prodview-eblxkinsqbaks) |
| 24 | + - [Zilla Plus for Redpanda](https://aws.amazon.com/marketplace/pp/prodview-sj4kquyndubiu) |
| 25 | +- You should see `Zilla Plus` listed in your [AWS Marketplace](https://console.aws.amazon.com/marketplace) subscriptions. |
| 26 | + |
| 27 | +You can skip this step if you have already subscribed to Zilla Plus via AWS Marketplace. |
| 28 | + |
| 29 | +## Launch Zilla Plus Instance via AMI |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +### Prerequisites |
| 34 | + |
| 35 | +- A Subscription to the [Zilla Plus product on Amazon Marketplace](https://aws.amazon.com/marketplace/seller-profile?id=b9df13e8-d3bc-41d1-bf8a-4a07aaa96e62) |
| 36 | + |
| 37 | +### Steps to launch a Zilla Plus instance |
| 38 | + |
| 39 | +1. **Sign in to the AWS Console** |
| 40 | + - Navigate to the [EC2 Dashboard](https://console.aws.amazon.com/ec2/home#Instances:instanceState=running) in your preferred region. |
| 41 | + |
| 42 | +2. **Start a New Instance** |
| 43 | + - Click `Launch Instance` and provide a name (e.g., `zilla-plus-proxy`). |
| 44 | + |
| 45 | +3. **Select the Zilla Plus AMI** |
| 46 | + - Choose the subscribed **Zilla Plus AMI** from your list. |
| 47 | + |
| 48 | +4. **Choose an Instance Type** |
| 49 | + - Select an instance type that fits your workload (e.g., `t3.medium` or `larger`). |
| 50 | + |
| 51 | +5. **Configure Networking** |
| 52 | + - Create or select a `VPC security group` that allows access to the required ports for Zilla Plus. |
| 53 | + - Ensure the instance is launched in a subnet with **Auto-assign public IP** enabled. |
| 54 | + |
| 55 | +6. **Add User Data** |
| 56 | + - Expand `Advanced details` > `User data - optional` |
| 57 | + - Paste [custom cloud-init script](#user-data) to initialize the Zilla Plus service with `zilla.yaml` configuration. |
| 58 | + - You can also use `base64-encoded` input directly by selecting `User data has already been base64 encoded` option. |
| 59 | + |
| 60 | +7. **Launch the Instance** |
| 61 | + - Click `Launch Instance`. |
| 62 | + |
| 63 | +### User Data |
| 64 | + |
| 65 | +::: tabs |
| 66 | + |
| 67 | +@tab Services Init |
| 68 | + |
| 69 | +```yaml:no-line-numbers |
| 70 | +<!-- @include: amazon-msk-secure-public-access-mtls-user-data.yaml#services_init --> |
| 71 | +``` |
| 72 | + |
| 73 | +@tab Zilla Config Init |
| 74 | + |
| 75 | +```yaml:no-line-numbers |
| 76 | +<!-- @include: amazon-msk-secure-public-access-mtls-user-data.yaml#config_init --> |
| 77 | +``` |
| 78 | + |
| 79 | +::: |
| 80 | + |
| 81 | +::: details Complete User Data for reference |
| 82 | + |
| 83 | +```yaml |
| 84 | +<!-- @include: amazon-msk-secure-public-access-mtls-user-data.yaml --> |
| 85 | +``` |
| 86 | +
|
| 87 | +::: |
| 88 | +
|
| 89 | +### Verify Zilla Plus Service |
| 90 | +
|
| 91 | +> This checks that the services and networking were properly configured. |
| 92 | +
|
| 93 | +Navigate to the [EC2 running instances dashboard.](https://console.aws.amazon.com/ec2/home#Instances:instanceState=running) |
| 94 | +
|
| 95 | +::: note Check your selected region |
| 96 | +Make sure you have selected the desired region, ex: `US East (N. Virginia) us-east-1`. |
| 97 | +::: |
| 98 | + |
| 99 | +Select the Zilla Plus instance launched to show the details. |
| 100 | + |
| 101 | +Find the `Public IPv4 Address` and then SSH into the instance. |
| 102 | + |
| 103 | +```bash |
| 104 | +ssh -i ~/.ssh/<key-pair.cer> ec2-user@<instance-public-ip-address> |
| 105 | +``` |
| 106 | + |
| 107 | +After logging in via SSH, check the status of the `zilla-plus` system service. |
| 108 | + |
| 109 | +::: tabs |
| 110 | + |
| 111 | +@tab Service is running |
| 112 | + |
| 113 | +Verify that the `zilla-plus` service is active and logging output similar to that shown below. |
| 114 | + |
| 115 | +```bash |
| 116 | +systemctl status zilla-plus.service |
| 117 | +``` |
| 118 | + |
| 119 | +```output:no-line-numbers |
| 120 | +zilla-plus.service - Zilla Plus |
| 121 | + Loaded: loaded (/etc/systemd/system/zilla-plus.service; enabled; vendor preset: disabled) |
| 122 | + Active: active (running) since... |
| 123 | +``` |
| 124 | + |
| 125 | +@tab Check Zilla Logs |
| 126 | + |
| 127 | +You can get an stdout dump of the `zilla-plus.service` using `journalctl`. |
| 128 | + |
| 129 | +```bash |
| 130 | +journalctl -e -u zilla-plus.service | tee -a /tmp/zilla.log |
| 131 | +``` |
| 132 | + |
| 133 | +```output:no-line-numbers |
| 134 | +systemd[1]: Started zilla-plus.service - Zilla Plus. |
| 135 | +... |
| 136 | +``` |
| 137 | + |
| 138 | +@tab Check Cloud Init Logs |
| 139 | + |
| 140 | +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. |
| 141 | + |
| 142 | +```bash |
| 143 | +cat /var/log/cloud-init-output.log |
| 144 | +``` |
| 145 | + |
| 146 | +```output:no-line-numbers |
| 147 | +Cloud-init v. 22.2.2 running 'init'... |
| 148 | +``` |
| 149 | + |
| 150 | +::: |
| 151 | + |
| 152 | +## Conclusion |
| 153 | + |
| 154 | +You have successfully deployed the [Zilla Plus](https://aws.amazon.com/marketplace/seller-profile?id=b9df13e8-d3bc-41d1-bf8a-4a07aaa96e62) using AWS AMI. |
| 155 | + |
| 156 | +::: tip |
| 157 | +Check out the [Troubleshooting](/support/troubleshooting-guides.md) guide if you run into any issues. |
| 158 | +::: |
0 commit comments