Skip to content

Some CDK to spit out Cloudformation for building EC2 instances of Windows Active Directory

License

Notifications You must be signed in to change notification settings

johnweland/aws-cdk-windows-ad-deployment

Repository files navigation

AWS CDK Windows AD Deployment

Some AWS CDK to spit out Cloudformation for building EC2 instances of Windows Active Directory

Setup

  1. make sure you have the latest version of the CDK CLI installed.

  2. make sure your AWK CLI credentials && profile are setup.

    nano ~/.aws/credentials
        [default]
        aws_access_key_id = ############
        aws_secret_access_key = ############
    
    nano ~/.aws/config
        [default]
        region = <your region>
        output = json
    
  3. install dependancies with npm

    npm install
  4. create an ssh key pair in AWS via the Management Console and save them to your AWS cli directory.

    ~/.aws/pems/<yourpemfile>

    4.1. then give them the proper permissions bash chmod 400 ~/.aws/pems/<yourpemfile>

Useage

  1. Synthesize your CloudFormation Template a. default Synthesize as a log output

    cdk synth --profile <yourprofile>

    b. Synthesize your template to a .yaml file

    cdk synth --profile <yourprofile> >> <yourfile.yaml>
  2. Deploy your CloudFormation Stack

    cdk deploy --profile <yourprofile>
  3. Destroy your CloudFormation Stack

    cdk destroy --profile <yourprofile>

About

Some CDK to spit out Cloudformation for building EC2 instances of Windows Active Directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published