Terraform contd
Security Group
- Manually creating security group: refer video of classroom
- Lets design inputs
- vpc id
- inbound rules
- from: ip address range (0.0.0.0/0 or vpc range or 100.100.100.100/32)
- protocol: TCP UDP ICMP
- port
- outbound rules
- to: ip address range (0.0.0.0/0 or vpc range or 100.100.100.100/32)
- protocol
- port
- Refer Here for the changes done to create web security group
Terraform outputs
- Refer Here for outputs
EC2 instance
- Inputs:
- AMI
ami-05e00961530ae1b55 - instance type:
t2.micro - key pair:
my_idrsa - network
- subnet
- enable public ip
- security group
- userdata
- AMI
- Refer Here for the changes done to create ec2 instance with user data.
