Giter Site home page Giter Site logo

kopicloud-ad-api / terraform-aws-kopicloud-ad-api-instance-win2022 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 40 KB

Deploy an AWS EC2 Instance with KopiCloud AD API in Windows Server 2022

Home Page: https://www.kopicloud-ad-api.com

HCL 45.21% PowerShell 54.79%
aws kopicloud kopicloud-ad-api terraform windows-2022

terraform-aws-kopicloud-ad-api-instance-win2022's Introduction

Deploy an AWS EC2 Instance with KopiCloud AD API in Windows Server 2022

Terraform KopiCloud-AD

The Terraform code in this repo will deploy an EC2 Instance for KopiCloud AD API with Windows Server 2022 and SQL Server 2022 Express.

Network Configuration

  • The code will create a network (VPC and Subnet); if you want to deploy to existing VPC and Subnet, edit the api-vm-main.tf file.

in the aws_security_group section, comment the vpc_id = aws_vpc.vpc.id line and add the existing vpc id reference, following the example below:

resource "aws_security_group" "api-sg" {
  name        = "${lower(var.app_name)}-${var.app_environment}-sg"
  description = "Allow incoming connections"
  //vpc_id      = aws_vpc.vpc.id
  vpc_id      = "vpc-07bc47fcb892f49c2"

and then in aws_instance section, comment the subnet_id = aws_subnet.public-subnet.id line and add the existing subnet id reference, following the example below:

resource "aws_instance" "api-server" {
  ami           = data.aws_ami.windows-2022.id
  instance_type = var.api_instance_type
  //subnet_id     = aws_subnet.public-subnet.id
  subnet_id     = "subnet-0de7e64c5c78e47f4"

Public IP

By default, the code adds a public IP address to the EC2 instance.

If you don't want to publish the API using an external IP, remove the resource "aws_eip" and resource "aws_eip_association" sections.

And set the variable api_associate_public_ip_address to false.

Notes

  • By default, the download and installation of SQL Server Management Studio is disabled because it will take lots of time.

  • The default Windows username is Administrator, and get the password from the AWS Console.

Configuring AWS Credentials

Read the document How to create an IAM account and configure Terraform to use AWS static credentials to configure credentials.

https://medium.com/@gmusumeci/how-to-create-an-iam-account-and-configure-terraform-to-use-aws-static-credentials-a8ea4dd4fdfc

How to Set Up KopiCloud AD API

  1. Get a License - Generate a free trial license (no credit card required) or purchase a license here.

  2. Install KopiCloud AD API using the code in this repo.

  3. Join the machine to the AD Domain to manage using the API.

  4. Create a Service Account with Domain Administrators permissions for the KopiCloud AD API.

  5. Run the KopiCloud AD API Config tool located in the folder C:\KopiCloud-AD-API-Config to finish the setup of API.

Note: You cannot log in to the KopiCloud AD API Portal using the Service Account for security reasons.

Resources

KopiCloud AD API Official Web Site: https://www.kopicloud-ad-api.com

KopiCloud AD API Documentation: https://help.kopicloud-ad-api.com

terraform-aws-kopicloud-ad-api-instance-win2022's People

Contributors

guillermo-musumeci avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.