Skip to content

Commit fee0a2b

Browse files
committed
Add iam_instance_profile
1 parent efbfd66 commit fee0a2b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
612
variable "attacker_ip" {
713
type = string
814
description = "The attacker IP to create a reverse shell from AWS EC2 instance."

0 commit comments

Comments
 (0)