Once CNAME added in domain server under DNS record then it get validated
Route 53
Once the certificate is validated then it still continue to work even after delete this record in R53
One “A” DNS record point to load balancer (if it doesn't take ping and provide its IP)
One “CNAME” DNS record point to “SSL”
NodeJS application
server.js
const express = require('express');
const os = require("os");
const app = express()
app.use('/', function (req,res){
res.status(200).send("Hello world from NodeJS runs in server [" + os.hostname() + "] on 3005");
})
app.listen(3005,()=>{
console.log(' server started on port 3005 !')
ubuntu@ip-1xx-xx-xx-xx:~/deployment$ node server.js
Python Application
pyserver.py
from flask import Flask
from flask import Response
import socket
app=Flask(__name__)
@app.route("/" )
def healthcheck():
# return " Hello world from python server run on 3006"
return Response(" python server runs on 3006 is healthy", status=200,mimetype="application/json")
@app.route("/app2/")
def helloworld():
return Response(" Hello World from python server runs in server [" + socket.gethostname() + "] on port 3006", status=200,mimetype="application/json")
if __name__=="__main__":
app.run(host="0.0.0.0" ,port="3006" )
ubuntu@ip-1xx-xx-xx-xx:~/deployment$ python pyserver.py