Sobes.tech
Middle

What tasks have you performed using Terraform?

sobes.tech AI

Answer from AI

Worked with Terraform for managing cloud infrastructure in AWS and Yandex.Cloud.

Main tasks:

  • Automatic creation and configuration of virtual machines (EC2, Compute Cloud).
  • Management of network resources (VPC, subnets, security groups, route tables).
  • Deployment and configuration of databases (RDS, Managed Service for PostgreSQL).
  • Management of data storage (S3, Object Storage as backend for Terraform state).
  • Creation and configuration of load balancers (ALB, NLB).
  • Deployment of Kubernetes clusters (EKS in AWS, Managed Service for Kubernetes in Yandex).
  • Management of DNS records.
  • Modularization of infrastructure for code reuse.
  • Use of variables and ternary operators for flexible configuration.
  • Application of terraform state to track infrastructure state.
  • Integration of Terraform with CI/CD pipelines (GitLab CI, Jenkins).

Terraform features used:

  • terraform init
  • terraform plan
  • terraform apply
  • terraform destroy
  • terraform state
  • Use of providers for AWS and Yandex.Cloud.
  • Application of modules.
  • Management of state backends (S3, Object Storage).
  • Use of HCL (HashiCorp Configuration Language).

Example code snippet for creating an EC2 instance:

resource "aws_instance" "web_server" {
  ami           = "ami-0abcdef1234567890" // Image ID
  instance_type = "t2.micro"

  tags = {
    Name = "WebServer"
  }
}
What tasks have you performed using Terraform? — DevOps - sobes.tech