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
0301e395
Commit
0301e395
authored
Dec 17, 2021
by
rajat.kulkarni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sampleec2.tf
parent
03889d0d
Pipeline
#26664
failed with stage
in 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
sampleec2.tf
sampleec2.tf
+4
-6
No files found.
sampleec2.tf
View file @
0301e395
...
@@ -5,11 +5,6 @@ provider "aws" {
...
@@ -5,11 +5,6 @@ provider "aws" {
secret_key
=
"H6ZxEVFZBVCO56mUFv4Oi1hzm2u934Z6yQxb9G15"
secret_key
=
"H6ZxEVFZBVCO56mUFv4Oi1hzm2u934Z6yQxb9G15"
}
}
resource
"aws_instance"
"ec301"
{
resource
"aws_instance"
"ec301"
{
ami
=
"ami-087c17d1fe0178315"
ami
=
"ami-087c17d1fe0178315"
instance_type
=
var
.
instance_type
instance_type
=
var
.
instance_type
...
@@ -17,6 +12,8 @@ resource "aws_instance" "ec301" {
...
@@ -17,6 +12,8 @@ resource "aws_instance" "ec301" {
key_name
=
"ec2instance"
key_name
=
"ec2instance"
tags
=
{
ec2_create
=
"instance1"
}
tags
=
{
ec2_create
=
"instance1"
}
}
}
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
...
@@ -25,6 +22,7 @@ variable "instance_type" {
...
@@ -25,6 +22,7 @@ variable "instance_type" {
}
}
resource
"aws_default_vpc"
"main"
{
resource
"aws_default_vpc"
"main"
{
tags
=
{
Name
=
"main"
}
tags
=
{
Name
=
"main"
}
}
}
resource
"aws_ebs_volume"
"vol"
{
resource
"aws_ebs_volume"
"vol"
{
...
...
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