Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/574n13y/terraform
Terraform
https://github.com/574n13y/terraform
aviatrix aws azure controller copilot gcp sandbox terraform terraform-modules terraform-workspace
Last synced: about 1 month ago
JSON representation
Terraform
- Host: GitHub
- URL: https://github.com/574n13y/terraform
- Owner: 574n13y
- License: other
- Created: 2023-10-06T20:47:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-22T10:32:12.000Z (almost 1 year ago)
- Last Synced: 2024-12-21T01:40:32.360Z (about 1 month ago)
- Topics: aviatrix, aws, azure, controller, copilot, gcp, sandbox, terraform, terraform-modules, terraform-workspace
- Language: HCL
- Homepage: https://574n13y.github.io/Terraform/
- Size: 3.49 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
This Git repository contains Terraform usecase code for practice.
- [ace-iac-day-zero-solved](https://github.com/574n13y/Terraform/tree/main/ace-iac-day-zero-solved){:target="_blank"}
- [ace-iac-day-two-solved](https://github.com/574n13y/Terraform/tree/main/ace-iac-day-two-solved){:target="_blank"}
- [Clean up](https://github.com/574n13y/Terraform/tree/main/Cleanup){:target="_blank"}
- [AWS AMI Image](https://github.com/574n13y/Terraform/tree/main/AWS%20AMI%20Image){:target="_blank"}## Terraform commands used on daily basis:
1. **terraform init**:- Initializes a working directory containing Terraform configuration files.2. **terraform plan**:- Generates an execution plan, outlining actions Terraform will take.
3. **terraform apply**:- Applies the changes described in the Terraform configuration.
4. **terraform destroy**:- Destroys all resources described in the Terraform configuration.
5. **terraform validate**:- Checks the syntax and validity of Terraform configuration files.
6. **terraform refresh**:- Updates the state file against real resources in the provider.
7. **terraform output**:- Displays the output values from the Terraform state.
8. **terraform state list**:- Lists resources within the Terraform state.
9. **terraform show**:- Displays a human -readable output of the current state or a specific resource's state.
10. **terraform import**:- Imports existing infrastructure into Terraform state.
11. **terraform fmt**:- Rewrites Terraform configuration files to a canonical format.
12. **terraform graph**:- Generates a visual representation of the Terraform dependency graph.
13. **terraform providers**:- Prints a tree of the providers used in the configuration.
14. **terraform workspace list**:- Lists available workspaces.
15. **terraform workspace select**:- Switches to another existing workspace.
16. **terraform workspace new**:- Creates a new workspace.
17. **terraform workspace delete**:- Deletes an existing workspace.
18. **terraform output**:- Retrieves output values from a module.
19. **terraform state mv**:- Moves an item in the state.
20. **terraform state pull**:- Pulls the state from a remote backend.
21. **terraform state push**:- Pushes the state to a remote backend.
22. **terraform state rm**:- Removes items from the state.
23. **terraform taint**:- Manually marks a resource for recreation.
24. **terraform untaint**:- Removes the 'tainted' state from a resource.
25. **terraform login**:- Saves credentials for Terraform Cloud.
26. **terraform logout**:- Removes credentials for Terraform Cloud.
27. **terraform force -unlock**:- Releases a locked state.
28. **terraform import**:- Imports existing infrastructure into your Terraform state.
29. **terraform plan -out**:- Saves the generated plan to a file.
30. **terraform apply -auto -approve**:- Automatically applies changes without requiring approval.
31. **terraform apply -target=resource**:- Applies changes only to a specific resource.
32. **terraform destroy -target=resource**:- Destroys a specific resource.
33. **terraform apply -var="key=value"**:- Sets a variable's value directly in the command line.
34. **terraform apply -var -file=filename.tfvars**:- Specifies a file containing variable definitions.
35. **terraform apply -var -file=filename.auto.tfvars**:- Automatically loads variables from a file.