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
67e5e922
Commit
67e5e922
authored
Dec 17, 2021
by
rajat.kulkarni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sampleec2.tf
parent
516c5679
Pipeline
#26694
failed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
26 deletions
+1
-26
sampleec2.tf
sampleec2.tf
+1
-26
No files found.
sampleec2.tf
View file @
67e5e922
...
...
@@ -12,12 +12,7 @@ resource "aws_instance" "ec301" {
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"
}
...
...
@@ -33,24 +28,4 @@ resource "time_sleep" "wait_30_seconds" {
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
}
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