Giter Site home page Giter Site logo

cdk-directoryservice's Introduction

AWS Directory Service with CDK

AWS Directory Service with CDK

Requirements for development environment

Work inside your AWS Cloud9 environment - Create an EC2 Environment

Install the latest version of CDK.

npm install -g aws-cdk --force

Creating a basic secret to store the Direcotry Service password

Open the AWS Secrets Manager console at https://console.aws.amazon.com/secretsmanager/.

Choose Store a new secret.

In the Select secret type section, choose Other type of secrets, specify your password in Plaintext and choose Next.

Secret

For Secret name, type directoryServicePassword and choose Next.

For Configure rotation section, leave the default configuration and choose Next.

Review your settings, and then choose Store secret to save.

Creating, initializing and deploying an AWS CDK project

Create a directory for your CDK project.

mkdir cdk-directoryservice
cd cdk-directoryservice

To initialize your new CDK project use the cdk init command as follows.

cdk init --language typescript

Install the AWS modules and all it’s dependencies into your project.

npm install @aws-cdk/aws-ec2 @aws-cdk/aws-directoryservice @aws-cdk/aws-ssm @aws-cdk/aws-iam

Replace the following files with the samples codes linked.

Build the project.

npm run build

Deploy the stack, it will take a few minutes to complete.

cdk deploy

Connect to your Windows Manage AD instance

Open the Amazon EC2 console at https://console.aws.amazon.com/ec2.

Click on Instances in the INSTANCES section. This will display a page to manage your instances.

Select your WindowsManageAD and choose Connect.

Click on Download Remote Desktop File and Close the window.

Ope your .rdp file, you'll see the Remote Desktop Connection dialog box, for Username type the directory service name with the Admin user as follows: aurbac.kabits.com\Admin and type the password stored in AWS Secrets Manager.

cdk-directoryservice's People

Contributors

aurbac 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.