-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem creating ec2 instance on cloud_breach_s3 #234
Comments
If you try running the cloudgoat create command again does that resolve your issue? The issue looks like there is not timeout between the server coming online and the provisioner/user_data running. A solution to this would be to have the file created in the user_data. |
I tried several times to overwrite; I also tried to destroy and create a new one, but it was not resolved |
@andrew-aiken Thanks for the quick availability for help :) |
Ahh, yup an allow listed IP would have done it. |
This is still open for me. Applies to any scenario containing ec2 instances. Error as described above when provisioning the instance from file: ssh timeout on the newly spawned ubuntu machines. I checked my whitelist as advised, it's definitely correct. |
If you look in the AWS console what is the IP & what are the security group rules? Try connecting directly to that IP |
Let's stay with the example cloud_breach_s3, though this applies to all other scenarios containing ec2 instances for me. Telnet connection is impossible as well, |
If you cannot hit the IP (telnet) then its probably related to the security group blocking your access. What are the rules on the security group ( |
The terraform summary at the beginning of the creation process states the 2 security groups correctly; the ingress cidr-blocks correctly reflect the contents of my whitelist.txt. The one egress cidr-block is 0.0.0.0/0, which I assume to be correct as well. Through my cloudgoat profile I can not list the groups after the creation breaks, and as I do not yet have the credentials from start.txt I can not check there. |
The user your using should have permission to view the security groups since it should have created them. You can also view the security groups from the AWS console |
Hello,
I had 2 errors at the beginning of setting up the lab, but the error for the s3 bucket was resolved thanks to #198 (comment) #233
But I can't figure out how to fix this error
This is the code for ec2.tf
If anyone has had this problem in the past or knows how to fix it, I'd love to hear :)
The text was updated successfully, but these errors were encountered: