DEV Community

architec
architec

Posted on • Updated on

AWS Cloud Quest: Automation with CloudFormation Study Note

This is the DIY challenge of the Automation with CloudFormation in AWS Cloud Quest.

Image description

DIY Steps:

  1. Change CloudFormation RoboticStack template to launch t2.small EC2
Resources:
  RobotAppServer:
    Type: 'AWS::EC2::Instance'
    Properties:
      InstanceType: t2.small
      ImageId: ami-087c17d1fe0178315
      SecurityGroups:
      - !Ref RobotAppSecurityGroup
  RobotAppSecurityGroup:
    Type: 'AWS::EC2::SecurityGroup'
    Properties:
      GroupDescription: Enable SSH access via port 22
      SecurityGroupIngress:
      - IpProtocol: tcp
        FromPort: '22'
        ToPort: '22'
        CidrIp: 0.0.0.0/0
  RobotS3Bucket:
    Type: 'AWS::S3::Bucket'
    DeletionPolicy: Delete
Enter fullscreen mode Exit fullscreen mode

Top comments (0)