Commit ebedb9b4 authored by rajat.kulkarni's avatar rajat.kulkarni

Delete sampleec2.tf

parent 493d20dd
Pipeline #26674 failed with stage
in 4 seconds
provider "aws" {
profile = "default"
region = "us-east-1"
access_key ="AKIA3CBLDPGKFLYIQM4T"
secret_key ="H6ZxEVFZBVCO56mUFv4Oi1hzm2u934Z6yQxb9G15"
}
resource "aws_instance" "ec301" {
ami ="ami-087c17d1fe0178315"
instance_type ="t2.micro"
key_name = "ec2instance"
tags = { ec2_create = "instance1" }
}
#variable "instance_type" {
# description = "Value of the Name tag for the EC2 instance"
#type = string
#default = "t2.micro"
#sensitive = true
#}
resource "aws_default_vpc" "main" {
tags = { Name = "main" }
}
resource "aws_ebs_volume" "vol" {
availability_zone = "us-east-1a"
size = 8
tags = { key_name = "ec2instance" }
}
resource "time_sleep" "wait_30_seconds" {
depends_on = [aws_instance.ec301]
create_duration = "60s"
}
variable "security_group_name1" {
description = "Value of the Security group name"
type = "string"
default = "security_group"
}
variable "role_ec2" {
description = "Value of the Name tag for the IAM role"
type = "string"
default = "role_name"
sensitive = true
}
variable "policy_name" {
description = "Value of the Name tag for the EC2 instance"
type = "string"
default = "policy_name"
sensitive = true
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment