Initial changes for AMLFS sample
This commit is contained in:
parent
534bfe3c19
commit
629a403870
32
quickstart/101-managed-lustre-create-filesystem/README.md
Normal file
32
quickstart/101-managed-lustre-create-filesystem/README.md
Normal file
@ -0,0 +1,32 @@
|
||||
# Managed Lustre create filesystem
|
||||
This template deploys a Managed Lustre filesystem.
|
||||
|
||||
## Terraform resource types
|
||||
- [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)
|
||||
|
||||
## Variables
|
||||
|
||||
| Name | Description |
|
||||
|-|-|
|
||||
| `resource_group_name` | Resource group name |
|
||||
| `resource_group_location` | Resource group location |
|
||||
|
||||
## Example terraform.tfvars file
|
||||
```
|
||||
resource_group_name = "rg-amlfs-create-101"
|
||||
location = "centralus"
|
||||
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
>terraform plan
|
||||
|
||||
|
||||
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
|
||||
+ create
|
||||
|
||||
Terraform will perform the following actions:
|
||||
|
||||
```
|
627
quickstart/101-managed-lustre-create-filesystem/TestRecord.md
Normal file
627
quickstart/101-managed-lustre-create-filesystem/TestRecord.md
Normal file
@ -0,0 +1,627 @@
|
||||
## 08 Oct 23 02:51 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.6
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.75.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 01 Oct 23 04:13 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.6
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.75.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 24 Sep 23 02:51 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.6
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.74.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 20 Sep 23 09:04 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.6
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.73.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 17 Sep 23 02:54 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.5
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.73.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 10 Sep 23 02:56 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.4
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.72.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 03 Sep 23 04:06 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.4
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.71.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 27 Aug 23 03:35 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.4
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.71.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 20 Aug 23 04:04 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.3
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.70.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 13 Aug 23 03:59 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.2
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.69.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 06 Aug 23 04:11 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.1
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.68.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 30 Jul 23 04:06 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.1
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.67.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 16 Jul 23 03:01 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.0
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.65.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 09 Jul 23 04:00 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.0
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.64.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 02 Jul 23 04:14 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.0
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.63.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 25 Jun 23 05:25 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.5.0
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.62.1
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 18 Jun 23 04:11 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.6
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.61.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 11 Jun 23 04:10 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.6
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.60.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 04 Jun 23 04:27 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.6
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.59.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 28 May 23 03:49 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.5
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.58.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 21 May 23 02:54 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.5
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.57.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 14 May 23 02:50 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.5
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.56.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 07 May 23 04:04 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.5
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.55.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 30 Apr 23 03:02 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.5
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.54.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 23 Apr 23 02:53 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.4
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.53.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 16 Apr 23 04:17 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.3
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.52.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.5.1
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 09 Apr 23 03:39 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.2
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.51.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 02 Apr 23 02:40 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.1
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.50.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 26 Mar 23 03:17 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.1
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.49.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 19 Mar 23 02:50 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.4.0
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.48.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 14 Mar 23 08:46 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.3.9
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.47.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 12 Mar 23 04:36 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.3.8
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.47.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 08 Mar 23 17:06 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.3.8
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.46.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 19 Feb 23 01:34 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.3.7
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.44.1
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 17 Feb 23 01:35 UTC
|
||||
|
||||
Success: true
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.3.7
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.43.0
|
||||
+ provider registry.terraform.io/hashicorp/random v3.4.3
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 12 Feb 23 00:48 UTC
|
||||
|
||||
Success: false
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.3.7
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.43.0
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## 05 Feb 23 00:21 UTC
|
||||
|
||||
Success: false
|
||||
|
||||
### Versions
|
||||
|
||||
Terraform v1.3.7
|
||||
on linux_amd64
|
||||
+ provider registry.terraform.io/hashicorp/azurerm v3.42.0
|
||||
|
||||
### Error
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
32
quickstart/101-managed-lustre-create-filesystem/main.tf
Normal file
32
quickstart/101-managed-lustre-create-filesystem/main.tf
Normal file
@ -0,0 +1,32 @@
|
||||
resource "azurerm_resource_group" "example" {
|
||||
name = "my-terraform-AMLFS-test"
|
||||
location = "East US"
|
||||
}
|
||||
|
||||
resource "azurerm_virtual_network" "example" {
|
||||
name = "my-terraform-AMLFS-vnet"
|
||||
address_space = ["10.90.0.0/16"]
|
||||
location = azurerm_resource_group.example.location
|
||||
resource_group_name = azurerm_resource_group.example.name
|
||||
}
|
||||
|
||||
resource "azurerm_subnet" "example" {
|
||||
name = "my-terraform-AMLFS-subnet"
|
||||
resource_group_name = azurerm_resource_group.example.name
|
||||
virtual_network_name = azurerm_virtual_network.example.name
|
||||
address_prefixes = ["10.90.2.0/24"]
|
||||
}
|
||||
|
||||
resource "azurerm_managed_lustre_file_system" "example" {
|
||||
name = "my-terraform-AMLFS-cluster"
|
||||
resource_group_name = azurerm_resource_group.example.name
|
||||
location = azurerm_resource_group.example.location
|
||||
sku_name = "AMLFS-Durable-Premium-40"
|
||||
subnet_id = azurerm_subnet.example.id
|
||||
storage_capacity_in_tb = 48
|
||||
zones = ["1"]
|
||||
maintenance_window {
|
||||
day_of_week = "Saturday"
|
||||
time_of_day_in_utc = "02:00"
|
||||
}
|
||||
}
|
18
quickstart/101-managed-lustre-create-filesystem/providers.tf
Normal file
18
quickstart/101-managed-lustre-create-filesystem/providers.tf
Normal file
@ -0,0 +1,18 @@
|
||||
terraform {
|
||||
required_version = ">= 1.0"
|
||||
|
||||
required_providers {
|
||||
azurerm = {
|
||||
source = "hashicorp/azurerm"
|
||||
version = ">= 3.0, < 4.0"
|
||||
}
|
||||
random = {
|
||||
source = "hashicorp/random"
|
||||
version = ">= 3.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "azurerm" {
|
||||
features {}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
variable "location" {
|
||||
type = string
|
||||
default = "eastus"
|
||||
description = "Resource group location"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user