- we get version and region so it defaults to those options
- calling only a simple cidr_block which defines the network range
- passing the vpc_id and cidr_block
- calling only the vpc_id
- specify the block and the gateway_id defined earlier
- pass arguments for subnet_id and route_table_id
- requires an existing key pair, called in the public_key argument
- name and description are custom
- vpc_id needs to be specified (defined in vpc .tf file)
- ingress = open inbound ports
- egress = open outbound ports (premitted by default)
- most elements here are either called from other .tf files
- or found somewhere on the web (.eg ami, instance_type)
- or custom (.eg private_id)
- call remote-exec provisioner to ssh in and run commands
- run commands
We did it !