Hi, i am new to terraform, my first assignment is to create a code for EC2 insta .

Malik Adeel Imtiaz:
Hi, i am new to terraform,
my first assignment is to create a code for EC2 instance, which will ask the user for following parameters,

  1. SGroup
  2. VPN
  3. No of Instances
    a. Name
    b. port
    c. subnet
    i need your kind help that from where i should start ? (need to submit on Sunday before 11:59 PM)
    Need to create single function and multiple loops. :disappointed:

Sagar Utekar:
Hi Malik,

check this doc- https://registry.terraform.io/providers/hashicorp/aws/latest/docs

Lisenet:
You can start with EC2 instance examples provided on the Terraform website and see how it goes.

Malik Adeel Imtiaz:
@Lisenet thank you so much, appreciated it if you please provide the link.

Lisenet:
Here you go: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#network-and-credit-specification-example