First, zip up your function:
rm lambda.zip; zip -r lambda.zip lambda-function/*
Then, update the current working function:
aws lambda update-function-code --zip-file fileb://lambda.zip --function-name LambdaFunctionName
First, zip up your function:
rm lambda.zip; zip -r lambda.zip lambda-function/*
Then, update the current working function:
aws lambda update-function-code --zip-file fileb://lambda.zip --function-name LambdaFunctionName
#!/bin/sh | |
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
# delete all evicted pods from all namespaces | |
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff state from all namespaces | |
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
import javax.crypto.Cipher; | |
class Test { | |
public static void main(String[] args) { | |
try { | |
System.out.println("Hello World!"); | |
int maxKeyLen = Cipher.getMaxAllowedKeyLength("AES"); | |
System.out.println(maxKeyLen); | |
} catch (Exception e){ | |
System.out.println("Sad world :("); |