cloudgoat icon indicating copy to clipboard operation
cloudgoat copied to clipboard

Error deploying ec2_takeover senario

Open researcher111 opened this issue 11 months ago • 5 comments

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" {

researcher111 avatar Mar 17 '24 22:03 researcher111

Could you please share the AMI that was being used

andrew-aiken avatar Mar 19 '24 12:03 andrew-aiken

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.

researcher111 avatar Mar 19 '24 12:03 researcher111

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 avatar Apr 03 '24 20:04 andrew-aiken