Skip to content

chandu484/lambda-kubectl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Lambda Kubectl

by Tal Muskal

based on AWS Lambda Bash Function Blueprint Template at https://github.com/jacov/lambda-bash

tags: aws lambda, kubernetes

Description:

Prerequisites

Recommended

  • brew install nodejs

Step 1: setup settings file

Step 2: Package, Deploy & Test lambda bash function on your aws account:

$ ./deploy.sh

Usage

Apply ConfigMap

{
	"command":"kubectl", 
	"params":["apply","-f" , "-"],
	"stdin":{
		  "apiVersion": "v1",
		  "data": {
		    "aws.region": "test"
		  },
		  "kind": "ConfigMap",
		  "metadata": {
		    "name": "clusterconfiguration2"
		  }
		}
}

List Pods

{
	"command":"kubectl", 
	"params":["get","pods"]
}

About

Run kubectl from aws lambda

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 53.0%
  • Shell 47.0%