Skip to content

Building a Windows 2016 Domain Controller using Ansible + Terrraform on AWS

License

Notifications You must be signed in to change notification settings

josehelps/building-a-windows-dc-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

building-a-windows-dc-terraform

Building a Windows 2016 Domain Controller using Ansible + Terrraform on AWS

Running

  1. git clone https://github.com/d1vious/building-a-windows-dc-terraform && cd building-a-windows-dc-terraform clone project and cd into the project dir
  2. Setup your variables for your environment under terraform.tfvars, set your own password, and public IP in the whitelist
  3. Run terraform init and then terraform apply

make sure that you configure terraform first

Configure

  1. brew install terraform install terraform CLI on OSX other platforms
  2. brew install awscli install aws CLI on OSX otherwise see: guide
  3. Get AWS API token aws configure
  4. Set terraform variables under terraform/terraform.tfvars

if on OSX please first set the following env variable: export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES otherwise you will see the following errors when running Ansible:

aws_instance.windows_2016_dc (local-exec): TASK [Gathering Facts] *********************************************************
aws_instance.windows_2016_dc (local-exec): objc[7843]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
aws_instance.windows_2016_dc (local-exec): objc[7843]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
aws_instance.windows_2016_dc: Still creating

About

Building a Windows 2016 Domain Controller using Ansible + Terrraform on AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages