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

30
terraform/010/main.tf Normal file
View File

@@ -0,0 +1,30 @@
# terraform {
# required_providers {
# aws = {
# source = "hashicorp/aws"
# version = "~> 6.0"
# }
# }
# }
# provider "aws" {
# region = "us-east-1"
# }
# Look up the existing volume by its Name tag
data "aws_ebs_volume" "devops_vol" {
filter {
name = "tag:Name"
values = ["devops-vol"]
}
}
# Snapshot it
resource "aws_ebs_snapshot" "devops_vol_ss" {
volume_id = data.aws_ebs_volume.devops_vol.id
description = "Devops Snapshot"
tags = {
Name = "devops-vol-ss"
}
}

13
terraform/010/task-10.md Normal file
View File

@@ -0,0 +1,13 @@
The Nautilus DevOps team has some volumes in different regions in their AWS account. They are going to setup some automated backups so that all important data can be backed up on regular basis. For now they shared some requirements to take a snapshot of one of the volumes they have.
Create a snapshot of an existing volume named devops-vol in us-east-1 region using terraform.
1) The name of the snapshot must be devops-vol-ss.
2) The description must be Devops Snapshot.
3) Make sure the snapshot status is completed before submitting the task.
The Terraform working directory is /home/bob/terraform. Update the main.tf file (do not create a separate .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.