Commit 67e5e922 authored by rajat.kulkarni's avatar rajat.kulkarni

Update sampleec2.tf

parent 516c5679
Pipeline #26694 failed with stage
in 4 seconds
...@@ -12,12 +12,7 @@ resource "aws_instance" "ec301" { ...@@ -12,12 +12,7 @@ resource "aws_instance" "ec301" {
key_name = "ec2instance" key_name = "ec2instance"
tags = { ec2_create = "instance1" } 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" { resource "aws_default_vpc" "main" {
tags = { Name = "main" } tags = { Name = "main" }
...@@ -33,24 +28,4 @@ resource "time_sleep" "wait_30_seconds" { ...@@ -33,24 +28,4 @@ resource "time_sleep" "wait_30_seconds" {
create_duration = "60s" create_duration = "60s"
} }
variable "security_group_name" {
description = "Value of the Security group name"
type = string
default = "security_group"
}
variable "role_name" {
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