-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ausmaster
committed
Sep 24, 2024
1 parent
41079e8
commit b352bd9
Showing
7 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
provider "aws" { | ||
profile = "default" | ||
region = var.region | ||
} | ||
|
||
resource "aws_instance" "vuln_vault_server" { | ||
ami = "ami-08012c0a9ee8e21c4" | ||
instance_type = var.ec2_instance_type | ||
|
||
tags = { | ||
Name = var.instance_name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
output "instance_id" { | ||
description = "ID of EC2 Instance" | ||
value = aws_instance.vuln_vault_server.id | ||
} | ||
|
||
output "instance_public_ip" { | ||
description = "Public IP address of EC2 instance" | ||
value = aws_instance.vuln_vault_server.public_ip | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
region = "us-west-1" | ||
instance_name = "VulnVaultServer" | ||
ec2_instance_type = "t2.micro" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
variable "region" { | ||
description = "Region of the EC2 instances" | ||
type = string | ||
default = "us-west-1" | ||
} | ||
|
||
variable "instance_name" { | ||
description = "Name tag for EC2 instance" | ||
type = string | ||
default = "VulnVaultInstance" | ||
} | ||
|
||
variable "ec2_instance_type" { | ||
description = "EC2 instance type" | ||
type = string | ||
default = "t2.micro" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[mypy] | ||
disable_error_code = no-redef |