Coder Social home page Coder Social logo

devasset-vpc-windows_server's Introduction

Deploy Windows server in an IBM Cloud VPC using Terraform

This asset provides the scripts to provision a single zone VPC with access to the internet. Then deploy a Windows virtual service instance into the VPC using Terraform.

Architecture

Prerequisites

  1. Active IBM Cloud account with credentials for an IBMid or ServiceID that can deploy VPC infrastructure.

  2. Access to a public SSH key.

  3. Update the versions of Terraform and IBM Cloud Terraform Provider in the versions.tf file.

  4. Review the variables in the variables.tf file required to deploy this pattern.

    • Add values for iaasapikey, paasapikey, iaasusername for authorization.
    • Add desired ibm_region, availability_zone and riaas_endpoint endpoint in variable.tf files.
    • Add ssh_key value which will be required while creating VSI.

Steps to Deploy pattern

  1. Run Terraform script:

    • cd infrastructure-code
    • terraform init
    • terraform plan
    • terraform apply
  2. Test by connecting to the instance using Remote Desktop protocol using the floating IP as target. To properly connect,

    • Get encrypted password from UI and saved to a file, decode it using:
      cat UI_PASSWORD_FILE | base64 --decode > decoded_base64_password_file
      
    • Decrypt it using the SSH key used to create the instance:
      openssl pkeyutl -in decoded_base64_password_file -decrypt -inkey ~/.ssh/id_rsa -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256 > finalpass
      
      cat finalpass
      

Notes:

  • New VPC will be assigned to new resource group vpc_test created in given region (ibm-region from variables.tf).

  • You need Administrator access to the given resource_group, in order to view encrypted password on VSI.

devasset-vpc-windows_server's People

Contributors

csantanapr avatar jaywarfield avatar lilorozco avatar pbahrs avatar vidhi11 avatar

Watchers

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