Terraform Datasources
- Refer Here for official docs
-
Use the security group module created in the past session to create a security group in default vpc.
- To Get default vpc we have used data source
- Refer Here for the changes done.

Terraform Backends
- Refer Here for official docs
- Backend type defines where the state is stored

- Backends also needs locking mechanism
- Some Backends like s3 donot support locking by default.

- Lets implemenet s3 bucket as backend type Refer Here
- Created a bucket called as
qtdectfstate - Create a DynamoDb table
qtterraformstatewith partition keyLockID - Now add the backend section to the terraform configuration
- Refer Here for the changes done
- Created a bucket called as
- Lets implement azurerm backend Refer Here for the changes
