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
febe27f0
Commit
febe27f0
authored
Dec 17, 2021
by
rajat.kulkarni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sampleec2.tf
parent
ff45d574
Pipeline
#26670
failed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
sampleec2.tf
sampleec2.tf
+9
-9
No files found.
sampleec2.tf
View file @
febe27f0
...
@@ -14,12 +14,12 @@ resource "aws_instance" "ec301" {
...
@@ -14,12 +14,12 @@ resource "aws_instance" "ec301" {
}
}
variable
"instance_type"
{
#
variable "instance_type" {
description
=
"Value of the Name tag for the EC2 instance"
#
description = "Value of the Name tag for the EC2 instance"
type
=
string
#
type = string
default
=
"t2.micro"
#
default = "t2.micro"
sensitive
=
true
#
sensitive = true
}
#
}
resource
"aws_default_vpc"
"main"
{
resource
"aws_default_vpc"
"main"
{
...
@@ -38,20 +38,20 @@ resource "time_sleep" "wait_30_seconds" {
...
@@ -38,20 +38,20 @@ resource "time_sleep" "wait_30_seconds" {
variable
"security_group_name1"
{
variable
"security_group_name1"
{
description
=
"Value of the Security group name"
description
=
"Value of the Security group name"
type
=
string
type
=
"string"
default
=
"security_group"
default
=
"security_group"
}
}
variable
"role_ec2"
{
variable
"role_ec2"
{
description
=
"Value of the Name tag for the IAM role"
description
=
"Value of the Name tag for the IAM role"
type
=
string
type
=
"string"
default
=
"role_name"
default
=
"role_name"
sensitive
=
true
sensitive
=
true
}
}
variable
"policy_name"
{
variable
"policy_name"
{
description
=
"Value of the Name tag for the EC2 instance"
description
=
"Value of the Name tag for the EC2 instance"
type
=
string
type
=
"string"
default
=
"policy_name"
default
=
"policy_name"
sensitive
=
true
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