You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/instanceprincipal.adoc
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,16 +37,20 @@ This section documents the use of {uri-oci-instance-principal}[instance_principa
37
37
38
38
Any user who has access to the instance (who can SSH to the instance), automatically inherits the privileges granted to the instance. Before you enable this feature, ensure that you know who can access it, and that they should be authorized with the permissions you are granting to the instance.
39
39
40
-
By default, this feature is *_enabled_*.
40
+
By default, this feature is *_disabled_*.
41
41
42
-
When you enable this feature, by default, the admin host has privileges to all resources in the compartment.
42
+
When you enable this feature, by default, the admin host has privileges to manage all resources in the compartment.
43
43
44
44
You can also turn on and off the feature at any time without impact on the admin host.
45
45
46
-
To enable, set enable_instance_principal to true:
46
+
To enable, set enable_instance_principal in oci_base_admin to true:
47
47
48
48
----
49
-
enable_instance_principal = "true"
49
+
oci_base_admin = {
50
+
....
51
+
enable_instance_principal = true
52
+
....
53
+
}
50
54
----
51
55
52
56
and verify:
@@ -55,13 +59,19 @@ and verify:
55
59
oci network vcn list --compartment-id <compartment-ocid>
56
60
----
57
61
62
+
You should be able to see a list of VCNs created in the compartment.
63
+
58
64
==== Disabling instance_principal on the admin host
59
65
60
-
. Set enable_instance_principal to false in terraform.tfvars
66
+
To disable, set enable_instance_principal in oci_base_admin to false:
Copy file name to clipboardExpand all lines: docs/notifications.adoc
+13-19Lines changed: 13 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,14 @@ The {uri-oci-notifications}[Oracle Cloud Infrastructure Notifications service] c
32
32
Set the following parameters in the terraform.tfvars in order to enable ONS Notification for the bastion host:
33
33
34
34
----
35
-
notification_enabled = true
36
-
notification_endpoint = "email_address"
37
-
notification_protocol = "EMAIL"
38
-
notification_topic = "bastion"
35
+
oci_base_bastion = {
36
+
...
37
+
notification_enabled = true
38
+
notification_endpoint = "valid_email_address"
39
+
notification_protocol = "EMAIL"
40
+
notification_topic = "bastion"
41
+
...
42
+
}
39
43
----
40
44
41
45
If your bastion is already created, set the above parameters in the terraform.tfvars and run terraform apply again:
@@ -46,26 +50,16 @@ terraform apply
46
50
47
51
You'll then receive a notification email to confirm the subscription.
48
52
49
-
Note that at the time of enabling ONS notification, instance_principal for the bastion must be enabled by setting *enable_instance_principal* to _true_. This can subsequently be disabled by setting it to _false_:
50
-
51
-
----
52
-
enable_instance_principal = false
53
-
----
54
-
55
-
and running terraform apply again:
56
-
57
-
----
58
-
terraform apply
59
-
----
60
-
61
-
Read more on {uri-instance-principal}[instance_principal].
62
-
63
53
==== Disabling ONS Notification for the bastion host
64
54
65
55
Set the following parameters in the terraform.tfvars to disable ONS Notification:
|Provide a custom image id for the bastion host or leave as Autonomous.
152
152
|imageid/Autonomous
153
153
|Autonomous
154
154
155
155
|bastion_shape
156
-
|The shape of bastion instance.
156
+
|The shape of bastion instance. *Required if bastion_enabled = true*
157
+
|
157
158
|
158
-
|VM.Standard.E2.1
159
159
160
160
|bastion_upgrade
161
-
|Whether to upgrade the bastion host packages after provisioning. It's useful to set this to false during development so the bastion is provisioned faster.
161
+
|Whether to upgrade the bastion host packages after provisioning. It's useful to set this to false during development/testing so the bastion is provisioned faster.
162
162
|true/false
163
163
|true
164
164
165
-
|enable_notification
166
-
|Whether to enable ONS notification for the bastion host.
167
-
|true/false
168
-
|false
169
-
170
165
|newbits
171
166
|The difference between the VCN's netmask and the desired subnets' masks specified in the form of a map. The values of the map are used as the newbits parameter in the {uri-terraform-cidrsubnet}[cidrsubnet] Terraform function to calculate each subnet's mask.
|Whether to enable instance_principal on the admin server. Refer to {uri-instance-principal-note}[instance_principal][instance_principal]
248
248
|true/false
249
-
|true
249
+
|false
250
250
251
-
|admin_notification_enabled
251
+
|notification_enabled
252
252
|Whether to enable ONS notification for the admin host. *Do not enable for now*.
253
253
|true/false
254
254
|false
255
255
256
-
|admin_notification_endpoint
256
+
|notification_endpoint
257
257
|The subscription notification endpoint. Email address to be notified. Only email is currently supported although ONS can also support Slack, Pagerduty among others.
statements=["Allow dynamic-group ${oci_identity_dynamic_group.admin_instance_principal[0].name} to manage all-resources in compartment id ${data.oci_identity_compartments.compartments_id.compartments.0.id}"]
0 commit comments