This repository contains examples of Terraform configurations for various cloud services.
- awt_iot/main.tf: Terraform configuration for AWS IoT.
- s3/main.tf: Terraform configuration for an Amazon S3 bucket.
- EC2/main.tf: Terraform configuration for an Amazon EC2 instance.
- lambda/main.tf: Terraform configuration for create a lambda function.
- Initial Setup: Before getting started, make sure you have Terraform installed. Then, initialize the working directory.
terraform init
- Apply Configuration: Run the following command to apply the configuration and create the resources.
terraform apply or terraform apply -auto-approve
- Destroy Resources: If you want to delete the created resources, you can run the following command.
terraform destroy or terraform destroy -auto-approve
The terraform plan
command is used to preview the changes that Terraform will make to the infrastructure. It does not apply the changes but shows a detailed view of what will be created, modified, or destroyed.
terraform plan
The terraform show
command is used to display human-readable output of the current state or the changes planned by Terraform.
terraform show
The terraform output
command is used to display the values of output variables defined in your Terraform configuration.
terraform output