Everyone using AWS knows that navigating the console could be a major pain. Luckily there is a number of tools aiming to simplify this burden. One ...
For further actions, you may consider blocking this person and/or reporting abuse
This article doesn't cover exposing the instance to the internet. Just wasted 2 hours trying to ssh into the instance I just created :(
A more complete article can be found here: medium.com/@hmalgewatta/setting-up...
Good catch! I forgot to associate security group with the instance. This should be added to instance resource:
I fixed the article too!
How do I set in the security group section my public_ip? Like curl ifconfig.me?
I just want to allow SSH from my IP.
Do you have any idea how can I accomplished that?
In you
aws_security_group
resource, you can specify allowed IPs usingcidr_block
. For example:I was thinking in somehow my .tf files execute and save the value of a command to accomplish that, I'd to replace the ["1.1.1.1/32"] to 'curl ifconfig.me'.
i see. i have not tested it, but theoretically you can do something like that:
WOW - That's nice, I'm going try it! Thank you!!!
Hello,
Great blog on deploying EC2 instances with Terraform! For those interested in automated deployment processes, you might also find our detailed guide on using Azure DevOps for automated application deployment helpful. It covers best practices and step-by-step instructions to streamline your deployment pipeline:
blog.piraiinfo.com/Azure-Devops-Au...
Happy deploying!
For more resources and insights, feel free to explore on piraiinfo.com/ .
Nice article!
why VM getting automatically stopped after successfully launched?
I am curious why did the VM stop after it was successfully launched. Also, why not just enter the IP address as opposed to using this customization.
Todd