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" {
66 ami = " ami-06b263d6ceff0b3dd"
77 instance_type = " t2.micro"
88 subnet_id = var. subnet_id
9+ iam_instance_profile = var. iam_instance_profile
910 user_data = data. template_file . user_data . rendered
1011 associate_public_ip_address = true
1112
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ variable "subnet_id" {
33 description = " The VPC Subnet ID to launch in."
44}
55
6+ variable "iam_instance_profile" {
7+ type = string
8+ description = " The IAM Instance Profile to launch the instance with."
9+ default = null
10+ }
11+
612variable "attacker_ip" {
713 type = string
814 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