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: lab03/README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
### Lab03 - Sentinel Policy as Code
2
2
3
+
Duration: 10 minutes
4
+
3
5
In this Lab we will continue to use your Organization we setup in lab02. Using Sentinel policy-as-code framework we will restrict the AWS EC2 instance type being deployed.
4
6
- The Sentinel policy code is included in lab03 directory: [restrict-aws-instance-type.sentinel](restrict-aws-instance-type.sentinel).
5
7
- You can view [example Sentinel policies on AWS](https://github.com/hashicorp/terraform-guides/tree/master/governance/aws) in terraform-guides repo.
@@ -34,8 +36,8 @@ In this Lab we will continue to use your Organization we setup in lab02. Using S
34
36
### Task 3: View Sentinel policy failure and Override
35
37
36
38
**Steps:**
37
-
- The Run should show a Policy failure. View the Allowed EC2 instance types in Sentinel Policy code. You will see it is restricted to `t2.small`.
38
-
- Our [main.tf](../lab02/server/main.tf) is using an instance type of `t2.medium` which is causing the Policy to fail.
39
+
- The Run should show a Policy failure. View the Allowed EC2 instance types in Sentinel Policy code. You will see `instance_type` is restricted to `t2.small`.
40
+
- Our [main.tf](../lab02/server/main.tf) is using an `instance_type` of `t2.medium` which is causing the Policy to fail.
39
41
- Since you are the owner of the Organization, you are able to Override this Policy failure.
40
42
- Click on "Override" button Optionally adding some comments
41
43
- Click on "Confirm and Apply" button to allow the Run to complete.
0 commit comments