Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Terraform_ec2_instance
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rajat.kulkarni
Terraform_ec2_instance
Commits
ebedb9b4
Commit
ebedb9b4
authored
Dec 17, 2021
by
rajat.kulkarni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete sampleec2.tf
parent
493d20dd
Pipeline
#26674
failed with stage
in 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
+0
-59
sampleec2.tf
sampleec2.tf
+0
-59
No files found.
sampleec2.tf
deleted
100644 → 0
View file @
493d20dd
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment