clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.59k stars 979 forks source link

AWS deployment - aws_instance.win10: Still creating... #826

Closed jamietlee closed 2 years ago

jamietlee commented 2 years ago

Description of the issue:

While deploying detection lab via terraform, my deployment cannot get past the following message: aws_instance.win10: Still creating... [time elapsed] This will repeat until I force stop the deployment. I can see all of the instances in AWS however I need to test whether they are all fully deployed.

AWS_deployment_error

Link to Gist Containing Build Logs:

clong commented 2 years ago

Hi @jamieleecyber , which AWS region is this?

jamietlee commented 2 years ago

This is launching into us-west-1

Get Outlook for iOShttps://aka.ms/o0ukef


From: Chris Long @.> Sent: Tuesday, June 21, 2022 8:57:11 AM To: clong/DetectionLab @.> Cc: jamieleecyber @.>; Mention @.> Subject: Re: [clong/DetectionLab] AWS deployment - aws_instance.win10: Still creating... (Issue #826)

Hi @jamieleecyberhttps://github.com/jamieleecyber , which AWS region is this?

— Reply to this email directly, view it on GitHubhttps://github.com/clong/DetectionLab/issues/826#issuecomment-1160948575, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYWAOWJYFTTWP676JUQR2OLVQD447ANCNFSM5Y46TGIA. You are receiving this because you were mentioned.Message ID: @.***>

clong commented 2 years ago

Hmm, I did a few launches today and I'm not able to reproduce this 😔

If you go into the AWS console, can you do a "Get instance screenshot" on the win10 host? I wonder where it's hanging.

jamietlee commented 2 years ago

Ok, I will try also and launch from a different machine to see if it replicates.

i-0b56b277bb1fa01e0


From: Chris Long @.> Sent: Tuesday, June 21, 2022 12:02:06 PM To: clong/DetectionLab @.> Cc: jamieleecyber @.>; Mention @.> Subject: Re: [clong/DetectionLab] AWS deployment - aws_instance.win10: Still creating... (Issue #826)

Hmm, I did a few launches today and I'm not able to reproduce this 😔

If you go into the AWS console, can you do a "Get instance screenshot" on the win10 host? I wonder where it's hanging.

— Reply to this email directly, view it on GitHubhttps://github.com/clong/DetectionLab/issues/826#issuecomment-1161133140, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYWAOWPSYBW6I5HQ6LZBHM3VQESSNANCNFSM5Y46TGIA. You are receiving this because you were mentioned.Message ID: @.***>

jamietlee commented 2 years ago

I've tried a few different things today. I've rebuilt the ubuntu VM I am deploying from with fresh installs of awscli and terraform and still have the win10 instance hanging. I've also tried deploying into us-east and also into a different aws account. What OS and versions of AWS and Terraform are you using to not get the same issue?

clong commented 2 years ago

Hey @jamieleecyber - are you using AWS VMs you built yourself or the pre-built ones?

I'm on MacOS Monterey, Terraform v1.2.1

clong commented 2 years ago

Hello, is this still an issue?

jamietlee commented 1 year ago

Thanks for getting back to me. I actually switched over to a windows vm, and replicated it a few times but it seems to be less frequent. I think it is occurring if the script is run, and then destroyed shortly after and then run again. But at least I have it working most of the time.

I have run into another issue though, and when I’m launching, I get a time out error on aws_instance.wef.

“54.183.99.77/wsman http timeout awaiting response headers”. Again, seems to happen after the environment is destroyed and re-launched, so think maybe a possible restriction on AWS’s side?

Jamie

Get Outlook for iOShttps://aka.ms/o0ukef


From: Chris Long @.> Sent: Monday, June 27, 2022 2:22:46 PM To: clong/DetectionLab @.> Cc: jamieleecyber @.>; Mention @.> Subject: Re: [clong/DetectionLab] AWS deployment - aws_instance.win10: Still creating... (Issue #826)

Hey @jamieleecyberhttps://github.com/jamieleecyber - are you using AWS VMs you built yourself or the pre-built ones?

I'm on MacOS Monterey, Terraform v1.2.1

— Reply to this email directly, view it on GitHubhttps://github.com/clong/DetectionLab/issues/826#issuecomment-1166843572, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYWAOWMWIYMTUQAPCYNOJH3VREXR5ANCNFSM5Y46TGIA. You are receiving this because you were mentioned.Message ID: @.***>