using terraform to provision aws infrastructure have public network to serve customer traffic and having nginx to connect to the private net