CloudFormation Template
The Amazon CloudFormation template provides all the required resources for setting up the online debugging broker. You can easily install it on your own AWS account following the steps below. You will have both a public and an internal endpoint for the broker as the output. You can choose to have DNS mappings done automatically as subdomains under a Route53 hosted zone that you specify.
Installation Steps
- SSL Certificate Preparation If you want to enable a secure connection via HTTPS, you will need an SSL certificate signed for the domains you are planning to use as the debugger endpoints. If you donât have an available SSL certificate on AWS Certificate Manager, you can upload your existing certificate or request a new one by following this guide.
- Parameter Settings Create a CloudFormation stack by providing the parameters in this link using the template:
- DNS Configuration
This configuration is created automatically if you have provided a âHosted Zone Nameâ parameter.
This configuration is not mandatory if you donât provide an SSL certificate. Without the certificate, you can directly use the endpoints in the âOutputsâ section.
You will see two URLs named BrokerInternalURL and BrokerPublicURL under the âOutputâ section after the stack creation is completed. You will need to update your DNS records to direct your reserved domains for the Thundra debugging broker to these endpoints.
For example:thundra-debugger-public.yourdomain.com -> BrokerPublicURL thundra-debugger-internal.yourdomain.com -> BrokerInternalURL
Debug Tool Configuration
Your debugging environment most likely has access to the internet and the best option at this point is to configure it to connect to the public broker endpoint. A secure connection is provided if you have an SSL certificate for the installation. If this is not the case or you want to use the internal endpoint anyway, you can access it from the debugging environment as long as it is connected to your VPC via a VPN tool.
You can use values under the âOutputâ section of the stack for the Thundra debugging client configuration. Use âBrokerPubliclUrlâ or âBrokerInternalUrlâ in order to debug with the public endpoint or the internal endpoint. Use âBrokerPortâ as the broker host parameter.
Please note that if you make a manual DNS configuration, you should use the respective DNS record values as the broker host parameter instead of the values under the âOutputâ section.
Lambda Configuration
Using the public endpoint is also the best option for your Lambda functions if they have internet access, but this may not be possible all the time. If you need to configure your Lambda functions to connect to the internal endpoint, you also need to be sure that you have an appropriate security configuration in order to access the debugging broker from your Lambda functions.