Advertisement
Guest User

Untitled

a guest
May 7th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. "OptionSettings": [
  2.  
  3. {
  4. "Namespace": "aws:autoscaling:asg",
  5. "OptionName": "MinSize",
  6. "Value": "1"
  7. },
  8. {
  9. "Namespace": "aws:autoscaling:asg",
  10. "OptionName": "MaxSize",
  11. "Value": "2"
  12. },
  13. {
  14. "Namespace": "aws:autoscaling:launchconfiguration",
  15. "OptionName": "EC2KeyName",
  16. "Value": { "Fn::FindInMap": [ "Environments",{"Ref": "EnvironUsed"},"InstanceKeyName" ] }
  17. },
  18. {
  19. "Namespace": "aws:autoscaling:launchconfiguration",
  20. "OptionName": "IamInstanceProfile",
  21. "Value": {"Fn::FindInMap": ["Environments",{"Ref": "EnvironUsed"},"IamRoleProfile"]}
  22. },
  23. {
  24. "Namespace": "aws:autoscaling:launchconfiguration",
  25. "OptionName": "InstanceType",
  26. "Value": "t2.micro"
  27. },
  28. {
  29. "Namespace": "aws:autoscaling:launchconfiguration",
  30. "OptionName": "SecurityGroups",
  31. "Value": { "Fn::FindInMap": [ "Environments",{"Ref": "EnvironUsed"},"BeanstalkSecurityGroup" ] }
  32. },
  33. {
  34. "Namespace": "aws:ec2:vpc",
  35. "OptionName": "VPCId",
  36. "Value": { "Fn::FindInMap": ["Environments", {"Ref": "EnvironUsed"},"VPC" ]}
  37. },
  38. {
  39. "Namespace": "aws:ec2:vpc",
  40. "OptionName": "Subnets",
  41. "Value": { "Fn::FindInMap": [ "Environments",{"Ref": "EnvironUsed"},"PrivateSubnet"]}
  42. },
  43. {
  44. "Namespace": "aws:ec2:vpc",
  45. "OptionName": "ELBSubnets",
  46. "Value": { "Fn::FindInMap": [ "Environments", {"Ref": "EnvironUsed"}, "PrivateSubnet" ]}
  47. },
  48. {
  49. "Namespace": "aws:ec2:vpc",
  50. "OptionName": "ELBScheme",
  51. "Value": "internal"
  52. },
  53. {
  54. "Namespace": "aws:elasticbeanstalk:environment",
  55. "OptionName": "EnvironmentType",
  56. "Value": "LoadBalanced"
  57. },
  58. {
  59. "Namespace": "aws:autoscaling:trigger",
  60. "OptionName": "MeasureName",
  61. "Value": "CPUUtilization"
  62. },
  63. {
  64. "Namespace": "aws:autoscaling:trigger",
  65. "OptionName": "Unit",
  66. "Value": "Percent"
  67. },
  68. {
  69. "Namespace": "aws:autoscaling:trigger",
  70. "OptionName": "UpperThreshold",
  71. "Value": "50"
  72. },
  73. {
  74. "Namespace": "aws:autoscaling:trigger",
  75. "OptionName": "LowerThreshold",
  76. "Value": "49"
  77. }
  78. ],
  79.  
  80. var express = require('express');
  81. var http=require('http');
  82.  
  83. var app = express();
  84.  
  85.  
  86. app.set('port', process.env.PORT || 8081);
  87.  
  88.  
  89. app.get('/',function(req,res){
  90.  
  91. res.send('Hello World');
  92.  
  93. });
  94.  
  95.  
  96. http.createServer(app).listen(app.get('port'), function () {
  97. console.log('Express server listening on port ' + app.get('port'));
  98. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement