https://github.com/johnweland/aws-cdk-windows-ad-deployment
Some CDK to spit out Cloudformation for building EC2 instances of Windows Active Directory
https://github.com/johnweland/aws-cdk-windows-ad-deployment
Last synced: about 1 month ago
JSON representation
Some CDK to spit out Cloudformation for building EC2 instances of Windows Active Directory
- Host: GitHub
- URL: https://github.com/johnweland/aws-cdk-windows-ad-deployment
- Owner: johnweland
- License: mit
- Created: 2021-09-23T14:23:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-24T18:07:02.000Z (over 3 years ago)
- Last Synced: 2025-01-24T17:46:00.203Z (3 months ago)
- Language: TypeScript
- Size: 301 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```output
nano ~/.aws/credentials
[default]
aws_access_key_id = ############
aws_secret_access_key = ############
```
```output
nano ~/.aws/config
[default]
region =
output = json
```3. install dependancies with npm
```bash
npm install
```
4. create an ssh key pair in AWS via the [Management Console](https://us-west-2.console.aws.amazon.com/ec2/v2/home?region=us-west-2#KeyPairs:) and save them to your AWS cli directory.```bash
~/.aws/pems/
```4.1. then give them the proper permissions
```bash
chmod 400 ~/.aws/pems/
```
### Useage
1. Synthesize your CloudFormation Template
a. _default_ Synthesize as a log output
```bash
cdk synth --profile
```
b. Synthesize your template to a .yaml file
```bash
cdk synth --profile >>
```
2. Deploy your CloudFormation Stack
```bash
cdk deploy --profile
```
3. Destroy your CloudFormation Stack
```bash
cdk destroy --profile
```