|
1 | | -resource "oci_core_instance" "VPS" { |
2 | | - availability_domain = "nWCj:US-ASHBURN-AD-2" |
3 | | - compartment_id = data.bitwarden_secret.compartment_id.value |
4 | | - display_name = "VPS" |
5 | | - fault_domain = "FAULT-DOMAIN-2" |
6 | | - shape = "VM.Standard.E2.1.Micro" |
7 | | - |
8 | | - shape_config { |
9 | | - memory_in_gbs = "1" |
10 | | - ocpus = "1" |
11 | | - vcpus = "2" |
12 | | - } |
13 | | - |
14 | | - agent_config { |
15 | | - are_all_plugins_disabled = false |
16 | | - is_management_disabled = false |
17 | | - is_monitoring_disabled = false |
18 | | - |
19 | | - plugins_config { |
20 | | - desired_state = "DISABLED" |
21 | | - name = "Vulnerability Scanning" |
22 | | - } |
23 | | - plugins_config { |
24 | | - desired_state = "DISABLED" |
25 | | - name = "Management Agent" |
26 | | - } |
27 | | - plugins_config { |
28 | | - desired_state = "ENABLED" |
29 | | - name = "Custom Logs Monitoring" |
30 | | - } |
31 | | - plugins_config { |
32 | | - desired_state = "ENABLED" |
33 | | - name = "Compute Instance Monitoring" |
34 | | - } |
35 | | - plugins_config { |
36 | | - desired_state = "DISABLED" |
37 | | - name = "Bastion" |
38 | | - } |
39 | | - } |
40 | | - |
41 | | - availability_config { |
42 | | - recovery_action = "RESTORE_INSTANCE" |
43 | | - } |
44 | | - |
45 | | - create_vnic_details { |
46 | | - assign_public_ip = true |
47 | | - display_name = "VPS" |
48 | | - hostname_label = "vps" |
49 | | - skip_source_dest_check = false |
50 | | - } |
51 | | - |
52 | | - instance_options { |
53 | | - are_legacy_imds_endpoints_disabled = false |
54 | | - } |
55 | | - |
56 | | - launch_options { |
57 | | - boot_volume_type = "PARAVIRTUALIZED" |
58 | | - firmware = "UEFI_64" |
59 | | - is_consistent_volume_naming_enabled = true |
60 | | - is_pv_encryption_in_transit_enabled = true |
61 | | - network_type = "PARAVIRTUALIZED" |
62 | | - remote_data_volume_type = "PARAVIRTUALIZED" |
63 | | - } |
64 | | - |
65 | | - source_details { |
66 | | - boot_volume_size_in_gbs = "50" |
67 | | - boot_volume_vpus_per_gb = "10" |
68 | | - source_id = "ocid1.image.oc1.iad.aaaaaaaa6blpytk5nu622uj7trevp7kjxihx4byt4q6botynbyjpknk7zwna" |
69 | | - source_type = "image" |
70 | | - } |
71 | | - |
72 | | - state = "RUNNING" |
73 | | -} |
74 | | - |
75 | 1 | ## ARM VM |
76 | 2 | resource oci_core_instance arm { |
77 | 3 | agent_config { |
|
0 commit comments