zoukankan      html  css  js  c++  java
  • How do I use EC2 Systems Manager to join an instance to my AWS Directory Service domain?

    1. Create new role "EC2RoleforSSM" in AWS IAM

     AWS->IAM->Roles->Create role->Select EC2, EC2 Role for Simple Systems Manager->AmazonEC2RoleforSSM->Role Name "EC2RoleforSSM"->Create Role

    2. Create a new document "join_domain_doc" in AWS System Manager Shared Resources

     AWS->EC2->System Manager Shared Resources->Documents->Create Document name "join_domain_doc"

    {
        "schemaVersion": "1.0",
        "description": "Join an instance to a domain",
        "runtimeConfig": {
           "aws:domainJoin": {
               "properties": {
                  "directoryId": "d-8267xxxxxx",
                  "directoryName": "ad.domain.com",
                  "dnsIpAddresses": [
                     "10.200.221.118",
                     "10.200.223.119"
                  ]
               }
           }
        }
    }

    3. Create a new Windows EC2 instance and Attach role "EC2RoleforSSM"

     AWS->EC2->Launch Instance->Select Windows 2016 base AMI->Instance Type->Storage->Network->SG->Launch

     AWS->EC2->Select new EC2->Action->Attach role "EC2RoleforSSM"

    4. Run a Command to the new Windows EC2 instance in AWS System Manager Services 

     AWS->System Manager Services->Run a Command->Owned By me document->Select "join_domain_doc"->Select Instances->Run

    Refer:

    https://amazonaws-china.com/cn/premiumsupport/knowledge-center/ec2-systems-manager-dx-domain/

    https://docs.aws.amazon.com/directoryservice/latest/admin-guide/prereq_connector.html#connect_verification

    https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html

  • 相关阅读:
    选择学习Web前端开发的理由
    在Nginx下部署SSL证书并重定向至HTTPS
    使用pm2快速将项目部署到远程服务器
    DNS域名解析过程
    HTML5新特性总结
    基于 HTML5 Canvas 的智能安防 SCADA 巡逻模块
    react中使用css的7种方式
    原生JS实现滑动轮播图
    H5与企业微信jssdk集成
    img图片不存在显示默认图
  • 原文地址:https://www.cnblogs.com/oskb/p/9373451.html
Copyright © 2011-2022 走看看