wavedocs
9/24/2016 - 12:07 PM

awesome-aws.md

Замена Apache на Nginx

option_settings:
  aws:elasticbeanstalk:environment:proxy:
    ProxyServer: nginx

Scheduled actions - помогает не держать без дела среду, например, ночью

option_settings:
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Start
    option_name: MinSize
    value: 1
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Start
    option_name: MaxSize
    value: 1
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Start
    option_name: DesiredCapacity
    value: 1
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Start
    option_name: Recurrence
    value: "0 9 * * 1-5"
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Stop
    option_name: MinSize
    value: 0
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Stop
    option_name: MaxSize
    value: 0
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Stop
    option_name: DesiredCapacity
    value: 0
  - namespace: aws:autoscaling:scheduledaction
    resource_name: Stop
    option_name: Recurrence
    value: "0 18 * * 1-5"

Open Ports

Resources:
  sslSecurityGroupIngress:.
    Type: AWS::EC2::SecurityGroupIngress
    Properties:
      GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
      IpProtocol: tcp
      ToPort: 443
      FromPort: 443
      CidrIp: 0.0.0.0/0