-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure_sftp.tf
57 lines (48 loc) · 1.99 KB
/
azure_sftp.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
resource "azurerem_resource_group" "exemple" {
name = var.resource_group_name
location = var.location
}
resource "azurerem_storage_account" "example" {
name = var.azurerm_storage_account_name
resource_group_name = var.resource_group_name
location = var.location
account_tier = var.azurerm_storage_account_account_tier
account_replication_type = var.azurerm_storage_account_account_replication_type
is_hns_enabled = true
is_sfpt_enabled = true
}
resource "azurerm_storage_container" "example" {
name = var.storage_container_name
storage_account_name = var.azurerm_storage_account.example.name
container_access_type = var.container_access_type
}
resource "azurerm_storage_blob" "example" {
name = var.storage_blob_name
storage_account_name = var.azurerm_storage_account.example.name
storage_container_name = var.azurerm_storage_container.example.name
type = var.blob_type
}
resource "azurerm_sftp_server" "example" {
name = var.azurerm_sftp_server_name
resource_group_name = var.resource_group_name
location = var.location
storage_account_id = var.azurerm_storage_account.example.id
identity {
type = var.identity_type
}
}
resource "azurerm_key_vault" "example" {
name = var.key_vault_name
location = var.location
resource_group_name = var.resource_group_name
tenant_id = var.tenant_id
sku_name = var.key_vault_sku_name
soft_delete_retention_days = var.soft_delete_retention_days
purge_protection_enabled = var.purge_protection_enabled
network_acls {
default_action = var.network_acls_default_action
bypass = var.network_acls_bypass
ip_rules = var.network_acls_ip_rules
virtual_network_subnet_ids = var.network_acls_virtual_network_subnet_ids
}
}