This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# | |
# CloudFormation Template to create EKS Worker Nodes without access to an IGW | |
# | |
# The following CloudFormation template is based upon the AWS-provided CloudFormation template for creating | |
# EKS worker nodes in your VPC. It differs in that it has user-data modified to configure a node to operate | |
# within a VPC that has no IGW. | |
# | |
# To use this template you will need a VPC with an EKS cluster already deployed and private access enabled. | |
# You will also need a web proxy configured to allow the worker nodes access to the AWS EKS service API. This |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=greengrass daemon | |
After=network.target | |
[Service] | |
ExecStart=/greengrass/ggc/core/greengrassd start | |
Type=simple | |
RestartSec=2 | |
Restart=always | |
User=root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require ('https'); | |
var querystring = require ('querystring'); | |
exports.handler = function(event, context) { | |
console.log(event); | |
var message = JSON.parse(event.Message); | |
var color = 'warning'; | |
switch(message.NewStateValue) { | |
case "OK": | |
color = 'good'; |