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
3e060abf
Commit
3e060abf
authored
Dec 17, 2021
by
rajat.kulkarni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sampleec2.tf
parent
dfbc58f1
Pipeline
#26688
failed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
sampleec2.tf
sampleec2.tf
+5
-10
No files found.
sampleec2.tf
View file @
3e060abf
provider
"aws"
{
provider
"aws"
{
profile
=
"default"
profile
=
"default"
region
=
"us-east-1"
region
=
"us-east-1"
access_key
=
"AKIA
XH6PITZUD6E7DLNX
"
access_key
=
"AKIA
3CBLDPGKFLYIQM4T
"
secret_key
=
"
miYosKiYXxcc4bGpfpVL8dmGWNFLPS4FhIl+dFqM
"
secret_key
=
"
H6ZxEVFZBVCO56mUFv4Oi1hzm2u934Z6yQxb9G15
"
}
}
resource
"aws_instance"
"ec301"
{
resource
"aws_instance"
"ec301"
{
...
@@ -36,26 +36,21 @@ resource "time_sleep" "wait_30_seconds" {
...
@@ -36,26 +36,21 @@ resource "time_sleep" "wait_30_seconds" {
variable
"security_group_name"
{
variable
"security_group_name"
{
description
=
"Value of the Security group name"
description
=
"Value of the Security group name"
type
=
string
type
=
string
default
=
"
ExampleAppServerInstance
"
default
=
"
security_group
"
}
}
variable
"role_name"
{
variable
"role_name"
{
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
=
"
ExampleAppServerInstanc
e"
default
=
"
role_nam
e"
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
=
"
ExampleAppServerInstanc
e"
default
=
"
policy_nam
e"
sensitive
=
true
sensitive
=
true
}
}
resource
"local_file"
"foo"
{
content
=
var
.
environment
filename
=
"/C:/Users/rajat.kulkarni/Screenshots/New folder/stage.tfvars"
}
variable
"environment"
{}
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