Terraform Workflow:
Terraform workflows consist of five fundamental steps:
Init - Initialize your code with download of required plugins of provider.
Plan - Review and predict the changes and determine whether to accept this changes.
Apply - Implement the changes in the real environment.
Destroy - Destroying the infra structure which we created.
We can validated the file format through terraform fmt command.
We can validated the file format through terraform fmt command.
[root@thiru project]# terraform fmt main.tf
╷
│ Error: Invalid multi-line string
│
│ on main.tf line 15:
│ 15: resource "aws_instance" "Web_server {
│ 16: ami =
│
│ Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the
│ "heredoc" multi-line template syntax.
╵
╷[root@thiru project]# terraform fmt main.tf
[root@thiru project]#
No comments:
Post a Comment