public IP is not working on ec2 machine
I am creating simple ec2 machine but my public IP address is not working. In security group inbound rules i have allowed all to ssh and http. I can login to my ec2 machine via gitbash but not sure what else i can do to make public IP work
For starting up a webserver with instance launch, you can use user-data as below (Eg: for Amazon Linux AMI):
Do note that for the above to work, the instance will need internet access when it launches. This can be via direct public IP association (i.e. Subnet setting) or options like NAT Gateway etc.