Skip to content

blissapps/terraform-provider-iis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform IIS Provider

Terraform Provider using the Microsoft IIS Administration API.

Usage

Setup

provider "iis" {
  access_key = "your access key"
  host = "https://localhost:55539"
}

Application pools

resource "iis_application_pool" "name" {
  name = "AppPool" // Name of the Application Pool
  runtime = "" // (optional) null or empty for "No Managed Code" or "vX.Y" to specify version
}

Directories

resource "iis_file" "name" {
  name = "name.of.your.directory"
  physical_path = "%systemdrive%\\inetpub\\your_app" // full path to directory
  type = "directory" // can also be "file"
  parent = "parent_id" // id of the parent folder
}

Websites

data "iis_website" "website-domain-com" {
  name = "website.domain.com"
  physical_path = "%systemdrive%\\inetpub\\your_app" // full path to website folder
  application_pool = iis_application_pool.name.id
  bindings   {
    protocol = "http"
    port = 80
    ip_address = "*"
    hostname = "website.domain.com"
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%