RhinoSecurityLabs / cloudgoat

CloudGoat is Rhino Security Labs' "Vulnerable by Design" AWS deployment tool
BSD 3-Clause "New" or "Revised" License
2.98k stars 623 forks source link

Error deploying ec2_takeover senario #252

Open researcher111 opened 8 months ago

researcher111 commented 8 months ago

Not sure what is wrong but I get the following error when deploying the ec2_takeover senario;

Error: creating EC2 Instance: InvalidParameterValue: The t2.micro instance type does not support an AMI with a boot mode of UEFI. Only instance types built on the Nitro System support UEFI. Specify an instance type that supports UEFI, and try again.
│       status code: 400, request id:
│ 
│   with aws_instance.vulnsite,
│   on ec2.tf line 23, in resource "aws_instance" "vulnsite":
│   23: resource "aws_instance" "vulnsite" {
andrew-aiken commented 8 months ago

Could you please share the AMI that was being used

researcher111 commented 8 months ago

Didn't specify an AIM. Just ran ./cloudgoat create ec2_takeover. It failed the third time I created and destroyed (./cloudgoat destroyed ec2_takeover) the senario. The first 2 times it worked flawlessly.

andrew-aiken commented 7 months ago

Do you have the latest version of the repository pulled?

From looking at the line where the error is occurring (23) its probably the version before the fix https://github.com/RhinoSecurityLabs/cloudgoat/commits/master/scenarios/ecs_takeover/terraform/ec2.tf

andrew-aiken commented 2 months ago

@researcher111 Did this help solve your issue?

researcher111 commented 2 months ago

yes, solved it. Thank you.