Skip to content

Commit

Permalink
Add iam_instance_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
iganbold committed Sep 6, 2020
1 parent efbfd66 commit fee0a2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resource "aws_instance" "this" {
ami = "ami-06b263d6ceff0b3dd"
instance_type = "t2.micro"
subnet_id = var.subnet_id
iam_instance_profile = var.iam_instance_profile
user_data = data.template_file.user_data.rendered
associate_public_ip_address = true

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ variable "subnet_id" {
description = "The VPC Subnet ID to launch in."
}

variable "iam_instance_profile" {
type = string
description = "The IAM Instance Profile to launch the instance with."
default = null
}

variable "attacker_ip" {
type = string
description = "The attacker IP to create a reverse shell from AWS EC2 instance."
Expand Down

0 comments on commit fee0a2b

Please # to comment.