You should have an ML Predict entrypoint that can be called via POST with something like:
{
"MLModelId": "model-id",
"Record":{
"key1": "value1",
<?php | |
//and in your application add: | |
$app['twig'] = $app->share($app->extend('twig', function($twig, $app) { | |
$twig->addExtension(new \Twig_Extensions_Extension_Debug()); | |
return $twig; | |
})); |
@echo on | |
:findJavaSimple | |
rem Simple check to see whether the "magic" Java binary is available on our path; | |
java -version > NUL 2> NUL | |
if errorlevel 1 goto findJavaAdvanced | |
goto setup | |
:findJavaAdvanced | |
rem See <https://github.com/jawi/ols/issues/140> |
#cloud-config | |
coreos: | |
etcd: | |
# generate a new token for each unique cluster from https://discovery.etcd.io/new | |
discovery: https://discovery.etcd.io/782a1d6717e57839b5238dda82759736 | |
# multi-region and multi-cloud deployments need to use $public_ipv4 | |
addr: $private_ipv4:4001 | |
peer-addr: $private_ipv4:7001 |
#!/bin/bash | |
# | |
# consul Manage the consul agent | |
# | |
# chkconfig: 2345 95 95 | |
# description: Consul is a tool for service discovery and configuration | |
# processname: consul | |
# config: /etc/consul.conf | |
# pidfile: /var/run/consul.pid |
#nomad !/bin/bash | |
# | |
# nomad Manage the nomad agent | |
# | |
# chkconfig: 2345 95 95 | |
# description: Consul is a tool for service discovery and configuration | |
# processname: nomad | |
# config: /etc/nomad.conf | |
# pidfile: /var/run/nomad.pid |
<!-- | |
Make sure you have the logback encoder in your dependencies: | |
<dependency> | |
<groupId>net.logstash.logback</groupId> | |
<artifactId>logstash-logback-encoder</artifactId> | |
<version>6.2</version> | |
</dependency> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-classic</artifactId> |
#!/usr/bin/env bash | |
# MIT No Attribution | |
# Copyright 2023 Roberto Migli | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
# software and associated documentation files (the "Software"), to deal in the Software | |
# without restriction, including without limitation the rights to use, copy, modify, | |
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
# permit persons to whom the Software is furnished to do so. |
Those tips where posted between June and July 2022 on LinkedIn by Roberto Migli.
#IAM tip #1: There are 4 main types of IAM policies: Identity-based policies, resource-based policies, permissions boundaries, Organizations SCPs and Session Policies. Matt Luttrell's blog post will guide you through when and how to use them.