O'Reilly logo

AWS Administration Cookbook by Rowan Udell, Lucas Chan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

  1. Open up your text editor and create a new CloudFormation template. We're going to start by adding a few Parameters as follows:
      AWSTemplateFormatVersion: '2010-09-09'       Parameters:         AmiId:           Type: AWS::EC2::AMI::Id           Description: AMI ID to launch instances from         VPCID:           Type: AWS::EC2::VPC::Id           Description: VPC where load balancer and instance will launch         SubnetIDs:           Type: List<AWS::EC2::Subnet::Id>           Description: Subnets where load balancer and instance will launch             (pick at least 2)
  1. Let's take a look at a security group we'll apply to a public load balancer:
      ExampleELBSecurityGroup:         Type: AWS::EC2::SecurityGroup         Properties:           GroupDescription: Security Group for example ELB           SecurityGroupIngress:  - IpProtocol: tcp  ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required