Skip to content

Commit

Permalink
first commit-setup aws-ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
chibaba committed Jan 2, 2024
0 parents commit 9afec06
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions infras/gitops1/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
terraform {

required_providers {

aws = {

source ="hasicorp/aws"
version = "4.10"
}
required_version = ">=1.1.0"

}

}
provider "aws" {
region = "us-east-1"
}

resource "aws_instance" "apache2_server"{
ami = "ami-00399ec92321828f5"
instance__type ="t2.micro"
user_data = "${file("user_data.sh")}"

tags = {
env = "dev"
}
}
Empty file added infras/gitops1/user_data.sh
Empty file.

0 comments on commit 9afec06

Please sign in to comment.