File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ resource "aws_instance" "this" {
6
6
ami = " ami-06b263d6ceff0b3dd"
7
7
instance_type = " t2.micro"
8
8
subnet_id = var. subnet_id
9
+ iam_instance_profile = var. iam_instance_profile
9
10
user_data = data. template_file . user_data . rendered
10
11
associate_public_ip_address = true
11
12
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ variable "subnet_id" {
3
3
description = " The VPC Subnet ID to launch in."
4
4
}
5
5
6
+ variable "iam_instance_profile" {
7
+ type = string
8
+ description = " The IAM Instance Profile to launch the instance with."
9
+ default = null
10
+ }
11
+
6
12
variable "attacker_ip" {
7
13
type = string
8
14
description = " The attacker IP to create a reverse shell from AWS EC2 instance."
You can’t perform that action at this time.
0 commit comments