Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform_assignment
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vanaja Chalamalasetty
terraform_assignment
Commits
fb0d8041
Commit
fb0d8041
authored
Mar 04, 2022
by
vchalamalsetty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial checkin
parents
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
67 additions
and
0 deletions
+67
-0
.DS_Store
oupput/.DS_Store
+0
-0
Screen Shot 2022-03-03 at 6.26.41 PM.png
oupput/Screen Shot 2022-03-03 at 6.26.41 PM.png
+0
-0
.DS_Store
terraform-ascend-training/.DS_Store
+0
-0
.terraform.lock.hcl
terraform-ascend-training/.terraform.lock.hcl
+2
-0
modules.json
terraform-ascend-training/.terraform/modules/modules.json
+2
-0
terraform-provider-google_v4.12.0_x5
.../4.12.0/darwin_amd64/terraform-provider-google_v4.12.0_x5
+0
-0
module-VirtualMachine-endGoal.tf
terraform-ascend-training/module-VirtualMachine-endGoal.tf
+1
-0
module-VirtualMachine.tf
terraform-ascend-training/module-VirtualMachine.tf
+1
-0
variables.tf
terraform-ascend-training/modules/variables.tf
+18
-0
virtualMachine.tf
terraform-ascend-training/modules/virtualMachine.tf
+35
-0
terraform.tfstate
terraform-ascend-training/terraform.tfstate
+8
-0
No files found.
oupput/.DS_Store
0 → 100644
View file @
fb0d8041
File added
oupput/Screen Shot 2022-03-03 at 6.26.41 PM.png
0 → 100644
View file @
fb0d8041
218 KB
terraform-ascend-training/.DS_Store
0 → 100644
View file @
fb0d8041
File added
terraform-ascend-training/.terraform.lock.hcl
0 → 100644
View file @
fb0d8041
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
terraform-ascend-training/.terraform/modules/modules.json
0 → 100644
View file @
fb0d8041
{
"Modules"
:[{
"Key"
:
""
,
"Source"
:
""
,
"Dir"
:
"."
},{
"Key"
:
"my-vm"
,
"Source"
:
"./modules"
,
"Dir"
:
"modules"
}]}
\ No newline at end of file
terraform-ascend-training/.terraform/providers/registry.terraform.io/hashicorp/google/4.12.0/darwin_amd64/terraform-provider-google_v4.12.0_x5
0 → 100755
View file @
fb0d8041
File added
terraform-ascend-training/module-VirtualMachine-endGoal.tf
0 → 100644
View file @
fb0d8041
terraform-ascend-training/module-VirtualMachine.tf
0 → 100644
View file @
fb0d8041
terraform-ascend-training/modules/variables.tf
0 → 100644
View file @
fb0d8041
variable
"vm-name"
{
type
=
string
default
=
"ascend-terraform"
}
resource
"random_string"
"vm-name"
{
length
=
12
upper
=
false
number
=
false
lower
=
true
special
=
false
}
\ No newline at end of file
terraform-ascend-training/modules/virtualMachine.tf
0 → 100644
View file @
fb0d8041
resource
"google_compute_instance"
"default"
{
name
=
"vmc-
${
random_string
.
vm-name
.
result
}
"
machine_type
=
"e2-medium"
zone
=
"us-central1-a"
project
=
"terraformexplore-343004"
tags
=[
"foo"
,
"bar"
]
allow_stopping_for_update
=
true
boot_disk
{
initialize_params
{
image
=
"debian-cloud/debian-9"
}
}
network_interface
{
network
=
"default"
access_config
{
// Ephemeral public IP
}
}
provisioner
"remote-exec"
{
connection
{
type
=
"ssh"
port
=
22
user
=
"vchalamalasetty"
host
=
google_compute_instance
.
default
.
network_interface
[
0
]
.
access_config
[
0
]
.
nat_ip
agent
=
"false"
private_key
=
"
${
file
(
"/Users/vchalamalasetty/.ssh/id_rsa"
)
}
"
}
inline
=
[
"sudo apt-get -y update"
,
"sudo apt-get -y install apache2"
,
]
}
}
terraform-ascend-training/terraform.tfstate
0 → 100644
View file @
fb0d8041
{
"version": 4,
"terraform_version": "1.1.6",
"serial": 1,
"lineage": "c94a1cb2-9a2f-7a40-d442-7761ebf3739c",
"outputs": {},
"resources": []
}
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