docs: add Terraform certification notes and tasks

This commit is contained in:
2026-08-04 23:18:47 +02:00
parent 91a1849009
commit 758182a700
53 changed files with 4588 additions and 0 deletions

24
terraform/011/main.tf Normal file
View File

@@ -0,0 +1,24 @@
# terraform {
# required_providers {
# aws = {
# source = "hashicorp/aws"
# version = "~> 6.0"
# }
# }
# }
# provider "aws" {
# region = "us-east-1"
# }
resource "aws_cloudwatch_metric_alarm" "datacenter_alarm" {
alarm_name = "datacenter-alarm"
namespace = "AWS/EC2"
metric_name = "CPUUtilization"
statistic = "Average"
comparison_operator = "GreaterThanThreshold"
threshold = 80
period = 300
evaluation_periods = 1
alarm_description = "Alarm when EC2 CPU utilization exceeds 80%"
}

13
terraform/011/task-11.md Normal file
View File

@@ -0,0 +1,13 @@
The Nautilus DevOps team is setting up monitoring in their AWS account. As part of this, they need to create a CloudWatch alarm.
Using Terraform, perform the following:
Task Details:
Create a CloudWatch alarm named datacenter-alarm.
The alarm should monitor CPU utilization of an EC2 instance.
Trigger the alarm when CPU utilization exceeds 80%.
Set the evaluation period to 5 minutes.
Use a single evaluation period.
Ensure that the entire configuration is implemented using Terraform. The Terraform working directory is /home/bob/terraform. Create the main.tf file (do not create a different .tf file) to accomplish this task.
Note: Right-click under the EXPLORER section in VS Code and select Open in Integrated Terminal to launch the terminal.