Skip to content

Commit

Permalink
Added catalog, project and gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Abby Artagame committed Nov 12, 2024
1 parent 78b310a commit 2ada475
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
49 changes: 49 additions & 0 deletions tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,53 @@ resource "azurerm_dev_center" "devCenter" {
type = "UserAssigned"
identity_ids = [azurerm_user_assigned_identity.userIdentity.id]
}
}

# Dev Center
resource "azurerm_dev_center" "devCenter" {
location = data.azurerm_resource_group.rg.location
name = var.devCenterName
resource_group_name = data.azurerm_resource_group.rg.name
identity {
type = "UserAssigned"
identity_ids = [azurerm_user_assigned_identity.userIdentity.id]
}
}

resource "azurerm_dev_center_catalog" "devCenterCatalogs" {
name = "DevBoxQuickStartTasks"
resource_group_name = data.azurerm_resource_group.rg.name
dev_center_id = azurerm_dev_center.devCenter.id
catalog_github {
branch = "main"
path = ""
uri = "https://github.com/microsoft/devcenter-catalog.git"
key_vault_key_url = ""
}
}

resource "azurerm_dev_center_catalog" "devCenterCatalogs" {
name = "DevBoxQuickStartTasks"
resource_group_name = data.azurerm_resource_group.rg.name
dev_center_id = azurerm_dev_center.devCenter.id
catalog_github {
branch = "main"
path = ""
uri = "https://github.com/microsoft/devcenter-catalog.git"
key_vault_key_url = ""
}
}

resource "azurerm_dev_center_project" "devCenterProject" {
dev_center_id = azurerm_dev_center.devCenter.id
location = data.azurerm_resource_group.rg.location
name = var.projectName
resource_group_name = data.azurerm_resource_group.rg.name
}

resource "azurerm_shared_image_gallery" "azureGallery" {
name = var.galleryName
resource_group_name = data.azurerm_resource_group.rg.name
location = data.azurerm_resource_group.rg.location
description = "Test Gallery"
}
8 changes: 8 additions & 0 deletions tf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ variable "devCenterUserIdentity" {

variable "devCenterName" {
type = string
}

variable "projectName" {
type = string
}

variable "galleryName" {
type = string
}
2 changes: 2 additions & 0 deletions tf/variables/dev.tfvars
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
devCenterUserIdentity = "dev-poc-uid-aue-001"
devCenterName = "dev-poc-dc-aue-001"
projectName = "dev-poc-prj-aue-001"
galleryName = "dev-poc-prj-aue-001"

0 comments on commit 2ada475

Please sign in to comment.