This template creates a Simple AD directory with the specified properties. The directory DNS name is 'corp.example.com'. It uses a 'Small' size and is associated with the specified VPC and subnets.

CloudFormation Template

AWSTemplateFormatVersion: '2010-09-09'
Description: Simple AD Directory
Parameters:
  SimpleADPW:
    Description: The password for the directory administrator.
    Type: String
    NoEcho: true
  subnetID1:
    Description: The identifier of the first subnet for the directory servers.
    Type: 'AWS::EC2::Subnet::Id'
  subnetID2:
    Description: The identifier of the second subnet for the directory servers.
    Type: 'AWS::EC2::Subnet::Id'
  vpcID:
    Description: The identifier of the VPC in which to create the directory.
    Type: 'AWS::EC2::VPC::Id'
Resources:
  myDirectory:
    Type: 'AWS::DirectoryService::SimpleAD'
    Properties:
      Name: undefined
      Password:
        Ref: undefined
      Size: undefined
      VpcSettings:
        SubnetIds:
          - Ref: undefined
          - Ref: undefined
        VpcId:
          Ref: undefined