Cloud9 Template

This template deploys the Cloud9 environment for our lab.

---
AWSTemplateFormatVersion: '2010-09-09'
Description: Cloud9 IDE Template   
Parameters:
  SubnetID:
    Description: ID of a Subnet.
    Type: AWS::EC2::Subnet::Id
Resources:
  C9Instance:
    Type: AWS::Cloud9::EnvironmentEC2
    Properties:
      Name: 'MGT312-Cloud9IDE'
      Description: !Sub 'MGT312-Cloud9IDE'
      InstanceType: t3.small
      SubnetId: !Ref 'SubnetID'
      OwnerArn: !Sub "arn:aws:sts::${AWS::AccountId}:assumed-role/TeamRole/MasterKey"
Outputs:
  C9Instance:
    Description: Cloud9 Instance Name
    Value: !Ref 'C9Instance'