Skip to content

Instantly share code, notes, and snippets.

@barrydobson
Created August 23, 2016 07:23
Show Gist options
  • Save barrydobson/9d357be25ac7c84a3aa9f567ba73f56a to your computer and use it in GitHub Desktop.
Save barrydobson/9d357be25ac7c84a3aa9f567ba73f56a to your computer and use it in GitHub Desktop.
Sample AWS Elastic Beanstalk Environment configuration file
AWSConfigurationTemplateVersion: 1.1.0.0
EnvironmentTier:
Type: Standard
Name: WebServer
SolutionStack: 64bit Amazon Linux 2016.03 v2.1.0 running Docker 1.9.1
EnvironmentConfigurationMetadata:
Description: Configuration for my application.
DateCreated: '1461754412000'
DateModified: '1463744634'
Tags:
Application: My app
OptionSettings:
AWSEBAutoScalingScaleDownPolicy.aws:autoscaling:trigger:
LowerBreachScaleIncrement: '-1'
AWSEBAutoScalingScaleUpPolicy.aws:autoscaling:trigger:
UpperBreachScaleIncrement: '1'
AWSEBCloudwatchAlarmHigh.aws:autoscaling:trigger:
UpperThreshold: '90000'
AWSEBCloudwatchAlarmLow.aws:autoscaling:trigger:
BreachDuration: '5'
EvaluationPeriods: '1'
LowerThreshold: '60000'
MeasureName: RequestCount
Period: '5'
Statistic: Sum
Unit: Count
aws:autoscaling:asg:
Availability Zones: Any
Cooldown: '360'
MaxSize: '2'
MinSize: '1'
aws:autoscaling:launchconfiguration:
BlockDeviceMappings: /dev/xvdcz=:12:true:gp2
EC2KeyName: MyKey
IamInstanceProfile: aws-elasticbeanstalk-ec2-role
ImageId: ami-9bef69e8
InstanceType: t2.medium
MonitoringInterval: 5 minute
SecurityGroups: sg-000001,sg-000002
SSHSourceRestriction: tcp, 22, 22, 10.100.0.0/16
aws:autoscaling:updatepolicy:rollingupdate:
MaxBatchSize: '1'
MinInstancesInService: '1'
PauseTime: null
RollingUpdateEnabled: 'true'
RollingUpdateType: Health
Timeout: PT10M
aws:ec2:vpc:
VPCId: vpc-0000001
AssociatePublicIpAddress: 'false'
ELBScheme: public
ELBSubnets: subnet-0000001
Subnets: subnet-0000001
aws:elasticbeanstalk:application:
Application Healthcheck URL: /health
aws:elasticbeanstalk:command:
BatchSize: '1'
BatchSizeType: Fixed
IgnoreHealthCheck: 'false'
Timeout: '600'
aws:elasticbeanstalk:control:
DefaultSSHPort: '22'
LaunchTimeout: '0'
LaunchType: Migration
RollbackLaunchOnFailure: 'false'
aws:elasticbeanstalk:environment:
EnvironmentType: LoadBalanced
ServiceRole: aws-elasticbeanstalk-service-role
aws:elasticbeanstalk:application:environment:
NODE_ENV: aws-integration
WORKER_COUNT: 2
aws:elasticbeanstalk:healthreporting:system:
HealthCheckSuccessThreshold: Ok
SystemType: basic
aws:elasticbeanstalk:hostmanager:
LogPublicationControl: 'true'
aws:elasticbeanstalk:managedactions:
ManagedActionsEnabled: 'false'
aws:elasticbeanstalk:managedactions:platformupdate:
InstanceRefreshEnabled: 'false'
aws:elasticbeanstalk:monitoring:
Automatically Terminate Unhealthy Instances: 'true'
aws:elasticbeanstalk:sns:topics:
Notification Protocol: sqs
Notification Endpoint: arn:aws:sqs:eu-west-1:00000000000:app-env
Notification Topic Name: appTopic-env
aws:elb:healthcheck:
HealthyThreshold: '3'
Interval: '10'
Target: HTTP:80/health
Timeout: '5'
UnhealthyThreshold: '5'
aws:elb:listener:80:
InstancePort: '80'
InstanceProtocol: HTTP
ListenerEnabled: 'true'
ListenerProtocol: HTTP
aws:elb:loadbalancer:
CrossZone: 'true'
LoadBalancerHTTPPort: '80'
LoadBalancerHTTPSPort: 'OFF'
LoadBalancerPortProtocol: HTTP
LoadBalancerSSLPortProtocol: HTTPS
SecurityGroups: sg-0000000
aws:elb:policies:
ConnectionDrainingEnabled: 'true'
ConnectionDrainingTimeout: '20'
ConnectionSettingIdleTimeout: '60'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment