У нас вы можете посмотреть бесплатно Terraform EC2 S3 Bucket Tutorial | Mandatory Terraform Files Explained | Day 3 или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Hey everyone, welcome to my channel! 👋 🔹 What you’ll learn in this video: How to create a terraform files and which files are mandatory “Create a folder on your computer for this project, for example: terraform-ec2. provider.tf → to define AWS provider main.tf → to define EC2 resource variables.tf → for configurable variables outputs.tf → to get outputs like instance ID” STEP 2 – PROVIDER CONFIGURATION provider.tf provider "aws" { region = "ap-south-1" } “Here we define the AWS provider and the region where our EC2 will be created.” STEP 3 – DEFINE EC2 INSTANCE main.tf resource "aws_instance" "myec2" { ami = var.ami_id instance_type = var.instance_type tags = { Name = "Terraform-EC2" } } “We define the EC2 resource. AMI ID and instance type are stored in variables.tf. Tags help identify resources in AWS console.” STEP 4 – VARIABLES variables.tf variable "ami_id" { default = "ami-xxxxxxxx" } variable "instance_type" { default = "t2.micro" } “This allows us to change AMI or instance type easily without editing main.tf.” STEP 5 – OUTPUTS outputs.tf output "instance_id" { value = aws_instance.myec2.id } “This will display the EC2 instance ID after creation.” STEP 6 – TERRAFORM COMMANDS “Now let’s run Terraform commands step by step.” 1️⃣ Initialize project: terraform init “This sets up Terraform and downloads provider plugins.” 2️⃣ Preview changes: terraform plan “Terraform will show which resources will be created.” 3️⃣ Apply changes: terraform apply “Terraform will ask for confirmation. Type yes to create the EC2 instance.” “Now our EC2 instance is created in AWS. Let’s verify in AWS Console.” STEP 7 – DESTROY RESOURCES “After testing, always destroy resources to avoid extra billing.” terraform destroy “Terraform will ask for confirmation again. Type yes and the EC2 will be deleted.” SUMMARY create ec2 instance manually referring official doc. Define EC2 resource using variables Run Terraform commands (init, plan, apply) Destroy resources safely” How to create resource like S3 Bucket Purpose: Store files, logs, backups Terraform Code (main.tf): resource "aws_s3_bucket" "mybucket" { bucket = " my-unique-bucket-name-123" } Steps: terraform init terraform plan terraform apply Verify in AWS S3 console Notes: https://manjunathaga.blogspot.com/202... 👍 If you’re new to my channel, please **like, subscribe, and share**. More DevOps and Terraform videos coming soon 🚀 @FreeTrainingCloudDevops #terraform #devops #aws #infrastructureascode #cloudcomputing #freecourse