Monday, December 20, 2021

Terraform : TF2

https://registry.terraform.io/providers/hashicorp/aws/latest/docs

https://www.youtube.com/watch?v=JHiSGnh5Two&list=PLwbWIFE49l8kxe3PLftHFrwIYSfhNxaVZ&index=2

https://www.youtube.com/watch?v=SLB_c_ayRMo 

https://www.youtube.com/watch?v=JHiSGnh5Two&list=PLwbWIFE49l8kxe3PLftHFrwIYSfhNxaVZ&index=3

https://www.youtube.com/watch?v=esGezkpzpRo&list=PLwbWIFE49l8kxe3PLftHFrwIYSfhNxaVZ&index=4


resource "aws_instance" "tcw" {

  ami = "ami-0ed9277fb7eb570c9"
  instance_type = "t2.micro"
  tags = {
    Author = "KK"
    ProjectManager = "PM"
    Name = "TCW EC2Instance"
  }
}

resource "aws_ec2_tag" "tcw_nameTag" {
  resource_id = aws_instance.tcw.id
  key = "Name"
  value = "TCW EC2Instance"
}

#Configure the AWS Provider
provider "aws" {
    region = "us-east-1"
}

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass