forked from aws-samples/eb-php-wordpress
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdev.config
40 lines (37 loc) · 1.47 KB
/
dev.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
###############################################################################
## Enter your public IP address below. this value is used to restrict SSH
## access to the instances in your environment and, during installation, to
## restrict port 80 access on the load balancer's security group to let you
## securely install WordPress.
###############################################################################
option_settings:
aws:elasticbeanstalk:customoption:
MyIP: "127.0.0.1/32"
##############################################
#### Do not modify values below this line ####
##############################################
## Prevent Beanstalk from adding SSH ingress to instance SG
aws:autoscaling:launchconfiguration:
SSHSourceRestriction: tcp, 22, 22, 127.0.0.1/32
## Run only one instance during install
aws:autoscaling:asg:
MaxSize: 1
## Faster deployments during dev work
aws:autoscaling:updatepolicy:rollingupdate:
RollingUpdateEnabled: "false"
aws:elasticbeanstalk:command:
DeploymentPolicy: AllAtOnce
IgnoreHealthCheck: "true"
aws:elasticbeanstalk:monitoring:
Automatically Terminate Unhealthy Instances: "false"
Resources:
## Extend instance security group with SSH rule
sshfromhome:
Type: AWS::EC2::SecurityGroupIngress
Properties:
GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
IpProtocol: tcp
ToPort: 22
FromPort: 22
CidrIp:
Fn::GetOptionSetting: {OptionName: MyIP}