Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "OptionSettings": [
- {
- "Namespace": "aws:autoscaling:asg",
- "OptionName": "MinSize",
- "Value": "1"
- },
- {
- "Namespace": "aws:autoscaling:asg",
- "OptionName": "MaxSize",
- "Value": "2"
- },
- {
- "Namespace": "aws:autoscaling:launchconfiguration",
- "OptionName": "EC2KeyName",
- "Value": { "Fn::FindInMap": [ "Environments",{"Ref": "EnvironUsed"},"InstanceKeyName" ] }
- },
- {
- "Namespace": "aws:autoscaling:launchconfiguration",
- "OptionName": "IamInstanceProfile",
- "Value": {"Fn::FindInMap": ["Environments",{"Ref": "EnvironUsed"},"IamRoleProfile"]}
- },
- {
- "Namespace": "aws:autoscaling:launchconfiguration",
- "OptionName": "InstanceType",
- "Value": "t2.micro"
- },
- {
- "Namespace": "aws:autoscaling:launchconfiguration",
- "OptionName": "SecurityGroups",
- "Value": { "Fn::FindInMap": [ "Environments",{"Ref": "EnvironUsed"},"BeanstalkSecurityGroup" ] }
- },
- {
- "Namespace": "aws:ec2:vpc",
- "OptionName": "VPCId",
- "Value": { "Fn::FindInMap": ["Environments", {"Ref": "EnvironUsed"},"VPC" ]}
- },
- {
- "Namespace": "aws:ec2:vpc",
- "OptionName": "Subnets",
- "Value": { "Fn::FindInMap": [ "Environments",{"Ref": "EnvironUsed"},"PrivateSubnet"]}
- },
- {
- "Namespace": "aws:ec2:vpc",
- "OptionName": "ELBSubnets",
- "Value": { "Fn::FindInMap": [ "Environments", {"Ref": "EnvironUsed"}, "PrivateSubnet" ]}
- },
- {
- "Namespace": "aws:ec2:vpc",
- "OptionName": "ELBScheme",
- "Value": "internal"
- },
- {
- "Namespace": "aws:elasticbeanstalk:environment",
- "OptionName": "EnvironmentType",
- "Value": "LoadBalanced"
- },
- {
- "Namespace": "aws:autoscaling:trigger",
- "OptionName": "MeasureName",
- "Value": "CPUUtilization"
- },
- {
- "Namespace": "aws:autoscaling:trigger",
- "OptionName": "Unit",
- "Value": "Percent"
- },
- {
- "Namespace": "aws:autoscaling:trigger",
- "OptionName": "UpperThreshold",
- "Value": "50"
- },
- {
- "Namespace": "aws:autoscaling:trigger",
- "OptionName": "LowerThreshold",
- "Value": "49"
- }
- ],
- var express = require('express');
- var http=require('http');
- var app = express();
- app.set('port', process.env.PORT || 8081);
- app.get('/',function(req,res){
- res.send('Hello World');
- });
- http.createServer(app).listen(app.get('port'), function () {
- console.log('Express server listening on port ' + app.get('port'));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement