-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmain.tf
More file actions
51 lines (50 loc) · 1.12 KB
/
main.tf
File metadata and controls
51 lines (50 loc) · 1.12 KB
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
provider "oci" {}
resource "oci_core_instance" "generated_oci_core_instance" {
agent_config {
is_management_disabled = "false"
is_monitoring_disabled = "false"
plugins_config {
desired_state = "DISABLED"
name = "Vulnerability Scanning"
}
plugins_config {
desired_state = "ENABLED"
name = "Custom Logs Monitoring"
}
plugins_config {
desired_state = "ENABLED"
name = "Compute Instance Monitoring"
}
plugins_config {
desired_state = "DISABLED"
name = "Bastion"
}
}
availability_config {
recovery_action = "RESTORE_INSTANCE"
}
availability_domain = "修改为自己的"
compartment_id = "修改为自己的"
create_vnic_details {
assign_private_dns_record = "true"
assign_public_ip = "true"
subnet_id = "修改为自己的"
}
display_name = "instance"
instance_options {
are_legacy_imds_endpoints_disabled = "false"
}
metadata = {
"ssh_authorized_keys" = "修改为自己的"
}
shape = "VM.Standard.A1.Flex"
shape_config {
memory_in_gbs = "24"
ocpus = "4"
}
source_details {
boot_volume_size_in_gbs = "100"
source_id = "修改为自己的"
source_type = "image"
}
}