Skip to main content

Posts

Showing posts from May, 2021

HTTPS for Local Development

  Switching between HTTP to HTTPS for Local Development There are millions of developers who write web applications every day. While writing these  applications generally they run them locally or in the test environment to test the functionally, before releasing them to production. These applications expose HTTP endpoint using which they can be accessed and tested. Some times it requires to test the same application using HTTPS. I came across with this use case while working on CloudWatch Metric Streams, where I wanted to send the CloudWatch Metric Streams data to the monitoring solution using Kinesis Data Firehose, and it only accepts HTTPS endpoint. To accomplish the task I wrote one spring boot application . I was running this locally and it was exposing the HTTP endpoint, and the same endpoint can not be used in the Kinesis Data Firehose. It should expose HTTPS Endpoint.  There are many ways to expose the HTTPS endpoint and using ngrok it can be easily done. Install ngrok in Ubuntu