455 lines
19 KiB
JSON
455 lines
19 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.10.3",
|
|
"serial": 12,
|
|
"lineage": "8c4f4662-7a22-9c60-5ee6-025c956cea8b",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_linux_virtual_machine",
|
|
"name": "gitea",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"additional_capabilities": [],
|
|
"admin_password": null,
|
|
"admin_ssh_key": [
|
|
{
|
|
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDPHBBG/NzLtEJZgxidD6xO3lxmx0z3KJZmfuKqjeDF6XNn/EYdA+73gKFoF1x2w3BChejZpywQGr79fsPznvNqUiiJ/DQcxS023NONhhr6lo0KNi0a7sAnHXiRJjjK60iYx+poU27IiIwsjld8PlYoy+8ZB3uhiAEQlG9U2hBy2PudUuTTAOCYhbLwW851/YpPBXhOXVkUHOmTDb1V/yrVkHkIs/LsyuhiVq5s3c2/maA6vO+PydzTl6sv06xcP78xbB+EDW+yIYc55Y31utYu/iYIre3fVsyxsBxdxj/DLJBGXL9DlSsVL64s2LC5kVk+Pell2Y3tO4PXGwyCkwbh",
|
|
"username": "azureuser"
|
|
}
|
|
],
|
|
"admin_username": "azureuser",
|
|
"allow_extension_operations": true,
|
|
"availability_set_id": "",
|
|
"boot_diagnostics": [],
|
|
"bypass_platform_safety_checks_on_user_schedule_enabled": false,
|
|
"capacity_reservation_group_id": "",
|
|
"computer_name": "ride-gitea-prod-vm",
|
|
"custom_data": null,
|
|
"dedicated_host_group_id": "",
|
|
"dedicated_host_id": "",
|
|
"disable_password_authentication": true,
|
|
"disk_controller_type": "",
|
|
"edge_zone": "",
|
|
"encryption_at_host_enabled": false,
|
|
"eviction_policy": "",
|
|
"extensions_time_budget": "PT1H30M",
|
|
"gallery_application": [],
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Compute/virtualMachines/ride-gitea-prod-vm",
|
|
"identity": [],
|
|
"license_type": "",
|
|
"location": "eastus2",
|
|
"max_bid_price": -1,
|
|
"name": "ride-gitea-prod-vm",
|
|
"network_interface_ids": [
|
|
"/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkInterfaces/ride-gitea-production-rg-nic"
|
|
],
|
|
"os_disk": [
|
|
{
|
|
"caching": "ReadWrite",
|
|
"diff_disk_settings": [],
|
|
"disk_encryption_set_id": "",
|
|
"disk_size_gb": 30,
|
|
"name": "ride-gitea-prod-vm_OsDisk_1_5d685c5287ed4bea8c05adb5e553fc41",
|
|
"secure_vm_disk_encryption_set_id": "",
|
|
"security_encryption_type": "",
|
|
"storage_account_type": "Premium_LRS",
|
|
"write_accelerator_enabled": false
|
|
}
|
|
],
|
|
"os_image_notification": [],
|
|
"patch_assessment_mode": "ImageDefault",
|
|
"patch_mode": "ImageDefault",
|
|
"plan": [
|
|
{
|
|
"name": "default",
|
|
"product": "gitea",
|
|
"publisher": "bitnami"
|
|
}
|
|
],
|
|
"platform_fault_domain": -1,
|
|
"priority": "Regular",
|
|
"private_ip_address": "10.1.1.4",
|
|
"private_ip_addresses": [
|
|
"10.1.1.4"
|
|
],
|
|
"provision_vm_agent": true,
|
|
"proximity_placement_group_id": "",
|
|
"public_ip_address": "172.172.102.93",
|
|
"public_ip_addresses": [
|
|
"172.172.102.93"
|
|
],
|
|
"reboot_setting": "",
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"secret": [],
|
|
"secure_boot_enabled": false,
|
|
"size": "Standard_B2s",
|
|
"source_image_id": "",
|
|
"source_image_reference": [
|
|
{
|
|
"offer": "gitea",
|
|
"publisher": "bitnami",
|
|
"sku": "default",
|
|
"version": "1.24.2114171813"
|
|
}
|
|
],
|
|
"tags": null,
|
|
"termination_notification": null,
|
|
"timeouts": null,
|
|
"user_data": "",
|
|
"virtual_machine_id": "a19cec49-79ef-4171-89f5-d47e57c1e1f3",
|
|
"virtual_machine_scale_set_id": "",
|
|
"vm_agent_platform_updates_enabled": false,
|
|
"vtpm_enabled": false,
|
|
"zone": ""
|
|
},
|
|
"sensitive_attributes": [
|
|
[
|
|
{
|
|
"type": "get_attr",
|
|
"value": "admin_password"
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"type": "get_attr",
|
|
"value": "custom_data"
|
|
}
|
|
]
|
|
],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoyNzAwMDAwMDAwMDAwLCJkZWxldGUiOjI3MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoyNzAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_network_interface.nic",
|
|
"azurerm_public_ip.pip",
|
|
"azurerm_resource_group.rg",
|
|
"azurerm_subnet.subnet",
|
|
"azurerm_virtual_network.vnet"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_network_interface",
|
|
"name": "nic",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"accelerated_networking_enabled": false,
|
|
"applied_dns_servers": [],
|
|
"auxiliary_mode": "",
|
|
"auxiliary_sku": "",
|
|
"dns_servers": [],
|
|
"edge_zone": "",
|
|
"enable_accelerated_networking": false,
|
|
"enable_ip_forwarding": false,
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkInterfaces/ride-gitea-production-rg-nic",
|
|
"internal_dns_name_label": "",
|
|
"internal_domain_name_suffix": "f4txgmmfzcaejla4ivh0t332vh.cx.internal.cloudapp.net",
|
|
"ip_configuration": [
|
|
{
|
|
"gateway_load_balancer_frontend_ip_configuration_id": "",
|
|
"name": "nic-ipconfig",
|
|
"primary": true,
|
|
"private_ip_address": "10.1.1.4",
|
|
"private_ip_address_allocation": "Dynamic",
|
|
"private_ip_address_version": "IPv4",
|
|
"public_ip_address_id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/publicIPAddresses/ride-gitea-production-rg-pip",
|
|
"subnet_id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/virtualNetworks/ride-gitea-production-rg-vnet/subnets/default"
|
|
}
|
|
],
|
|
"ip_forwarding_enabled": false,
|
|
"location": "eastus2",
|
|
"mac_address": "",
|
|
"name": "ride-gitea-production-rg-nic",
|
|
"private_ip_address": "10.1.1.4",
|
|
"private_ip_addresses": [
|
|
"10.1.1.4"
|
|
],
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"tags": null,
|
|
"timeouts": null,
|
|
"virtual_machine_id": ""
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_public_ip.pip",
|
|
"azurerm_resource_group.rg",
|
|
"azurerm_subnet.subnet",
|
|
"azurerm_virtual_network.vnet"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_network_interface_security_group_association",
|
|
"name": "nic_nsg",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkInterfaces/ride-gitea-production-rg-nic|/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkSecurityGroups/ride-gitea-production-rg-nsg",
|
|
"network_interface_id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkInterfaces/ride-gitea-production-rg-nic",
|
|
"network_security_group_id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkSecurityGroups/ride-gitea-production-rg-nsg",
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"azurerm_network_interface.nic",
|
|
"azurerm_network_security_group.nsg",
|
|
"azurerm_public_ip.pip",
|
|
"azurerm_resource_group.rg",
|
|
"azurerm_subnet.subnet",
|
|
"azurerm_virtual_network.vnet"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_network_security_group",
|
|
"name": "nsg",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkSecurityGroups/ride-gitea-production-rg-nsg",
|
|
"location": "eastus2",
|
|
"name": "ride-gitea-production-rg-nsg",
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"security_rule": [],
|
|
"tags": null,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_resource_group.rg"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_network_security_rule",
|
|
"name": "gitea",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"access": "Allow",
|
|
"description": "",
|
|
"destination_address_prefix": "*",
|
|
"destination_address_prefixes": null,
|
|
"destination_application_security_group_ids": null,
|
|
"destination_port_range": "3000",
|
|
"destination_port_ranges": null,
|
|
"direction": "Inbound",
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkSecurityGroups/ride-gitea-production-rg-nsg/securityRules/Allow-Gitea-HTTP",
|
|
"name": "Allow-Gitea-HTTP",
|
|
"network_security_group_name": "ride-gitea-production-rg-nsg",
|
|
"priority": 110,
|
|
"protocol": "Tcp",
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"source_address_prefix": "*",
|
|
"source_address_prefixes": null,
|
|
"source_application_security_group_ids": null,
|
|
"source_port_range": "*",
|
|
"source_port_ranges": null,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_network_security_group.nsg",
|
|
"azurerm_resource_group.rg"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_network_security_rule",
|
|
"name": "ssh",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"access": "Allow",
|
|
"description": "",
|
|
"destination_address_prefix": "*",
|
|
"destination_address_prefixes": null,
|
|
"destination_application_security_group_ids": null,
|
|
"destination_port_range": "22",
|
|
"destination_port_ranges": null,
|
|
"direction": "Inbound",
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/networkSecurityGroups/ride-gitea-production-rg-nsg/securityRules/Allow-SSH",
|
|
"name": "Allow-SSH",
|
|
"network_security_group_name": "ride-gitea-production-rg-nsg",
|
|
"priority": 100,
|
|
"protocol": "Tcp",
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"source_address_prefix": "*",
|
|
"source_address_prefixes": null,
|
|
"source_application_security_group_ids": null,
|
|
"source_port_range": "*",
|
|
"source_port_ranges": null,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_network_security_group.nsg",
|
|
"azurerm_resource_group.rg"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_public_ip",
|
|
"name": "pip",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"allocation_method": "Static",
|
|
"ddos_protection_mode": "VirtualNetworkInherited",
|
|
"ddos_protection_plan_id": null,
|
|
"domain_name_label": null,
|
|
"edge_zone": "",
|
|
"fqdn": null,
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/publicIPAddresses/ride-gitea-production-rg-pip",
|
|
"idle_timeout_in_minutes": 4,
|
|
"ip_address": "172.172.102.93",
|
|
"ip_tags": null,
|
|
"ip_version": "IPv4",
|
|
"location": "eastus2",
|
|
"name": "ride-gitea-production-rg-pip",
|
|
"public_ip_prefix_id": null,
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"reverse_fqdn": null,
|
|
"sku": "Standard",
|
|
"sku_tier": "Regional",
|
|
"tags": null,
|
|
"timeouts": null,
|
|
"zones": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_resource_group.rg"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_resource_group",
|
|
"name": "rg",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg",
|
|
"location": "eastus2",
|
|
"managed_by": "",
|
|
"name": "ride-gitea-production-rg",
|
|
"tags": null,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo1NDAwMDAwMDAwMDAwLCJkZWxldGUiOjU0MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjo1NDAwMDAwMDAwMDAwfX0="
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_subnet",
|
|
"name": "subnet",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"address_prefixes": [
|
|
"10.1.1.0/24"
|
|
],
|
|
"default_outbound_access_enabled": true,
|
|
"delegation": [],
|
|
"enforce_private_link_endpoint_network_policies": false,
|
|
"enforce_private_link_service_network_policies": false,
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/virtualNetworks/ride-gitea-production-rg-vnet/subnets/default",
|
|
"name": "default",
|
|
"private_endpoint_network_policies": "Enabled",
|
|
"private_endpoint_network_policies_enabled": true,
|
|
"private_link_service_network_policies_enabled": true,
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"service_endpoint_policy_ids": null,
|
|
"service_endpoints": null,
|
|
"timeouts": null,
|
|
"virtual_network_name": "ride-gitea-production-rg-vnet"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_resource_group.rg",
|
|
"azurerm_virtual_network.vnet"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "azurerm_virtual_network",
|
|
"name": "vnet",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/azurerm\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"address_space": [
|
|
"10.1.0.0/16"
|
|
],
|
|
"bgp_community": "",
|
|
"ddos_protection_plan": [],
|
|
"dns_servers": [],
|
|
"edge_zone": "",
|
|
"encryption": [],
|
|
"flow_timeout_in_minutes": 0,
|
|
"guid": "3173a72f-c885-4480-ac1e-454fa9f7bcaf",
|
|
"id": "/subscriptions/bf0be4a4-5608-40ef-b653-e2242d24e448/resourceGroups/ride-gitea-production-rg/providers/Microsoft.Network/virtualNetworks/ride-gitea-production-rg-vnet",
|
|
"location": "eastus2",
|
|
"name": "ride-gitea-production-rg-vnet",
|
|
"resource_group_name": "ride-gitea-production-rg",
|
|
"subnet": [],
|
|
"tags": null,
|
|
"timeouts": null
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxODAwMDAwMDAwMDAwLCJkZWxldGUiOjE4MDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjoxODAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"azurerm_resource_group.rg"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|