Closed LaviBenshimol closed 2 months ago
Did you check the modules/configuration.py?
"""
create_key_pair_aws function reates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format.
Amazon EC2 stores the public key and displays the private key for you to save to a file.
:param region: region
:return: ssh key name
"""
The code with latest tag is ED25519?
This should be fixed.
I used EC2 (ubunto) on AWS, to run the Splunk attack range docker. I choose to create a new SSH key, but this key is not compatible with AWS AMI apparently.
The build configuration is as follows: starting configuration for AT-ST mech walker
? select cloud provider aws ? enter a master password for your attack_range (minimum 8 characters: one UPPERCASE, one lowercase, ttackrange1! ? do you want to use packer for prebuilt images? No
After running the build script, i recived this error for the windows server:
│ Error: creating EC2 Instance: Unsupported: ED25519 key pairs are not supported with Windows AMIs. C │ status code: 400, request id: d3d01d4c-103b-4f7c-a4d1-af4e93acb5e2 │ │ with module.windows-server.aws_instance.windows_server[1], │ on modules/windows/resources.tf line 33, in resource "aws_instance" "windows_server": │ 33: resource "aws_instance" "windows_server" {