Mrugesh Pisal DevOps Day 1

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Assignment 2

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~> 3.0.2"
    }
	aws = {
      source  = "hashicorp/aws"
      version = "~> 4.16"
    }
  }

  required_version = ">= 1.1.0"
}

provider "azurerm" {
  features {}
  subscription_id = "54d18623-a88e-4b6e-bcfe-a772406993b0"
  client_id       = "7e757450-7239-4c36-88f8-6664f3e49a49"
  client_secret   = "yhJ8Q~T7ycWjr4PjQ2ZUkTKgLeKTQ82YYGdiscP9"
  tenant_id       = "bc0f52a6-5a6d-45f4-8842-36ab113a5eb5"
}

resource "azurerm_resource_group" "mrugesh" {
  name     = "Day1ResourceGroup"
  location = "westus2"
}

provider "github" {
	token= "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"
}

resource "github_repository" "mrugeshdevops" {
  name        = "assignment1"
  description = "My first assignment1"
  visibility = "public"

}

provider "aws" {
  region  = "us-west-2"
}
resource "aws_instance" "mrugesh_server" {
  ami           = "ami-mrugesh"
  instance_type = "t2.micro"

  tags = {
    Name = "mrugeshFirstAssignmentAppServerInstance"
  }
  }

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x