Lab for implementing Batch Pipeline - when I run the following code in Cloud9 and in the voclabs:~/environment/terraform $ terraform init
I am getting the following error:
Initializing the backend…
Initializing modules…
╷
│ Error: Terraform encountered problems during initialisation, including problems
│ with the configuration, described below.
│
│ The Terraform configuration must be valid before initialization so that
│ Terraform can determine which modules and providers need to be installed.
│
│
╵
╷
│ Error: Invalid character
│
│ on outputs.tf line 1:
│ 1: ETL
│
│ This character is not used within the language.
╵
╷
│ Error: Argument or block definition required
│
│ on outputs.tf line 1:
│ 1: ETL
│
│ An argument or block definition is required here.
╵
╷
│ Error: Invalid character
│
│ on outputs.tf line 1:
│ 1: ETL
│
│ This character is not used within the language.
Anyone seen this before? Thank you for your help.
I am stuck here and not sure what to do to move forward
The problem is that you have completely uncommented the first line of the outputs.tf file. The first line should not be uncommented, and it should start with a # character. According to the instructions in step 1.9, you should only uncomment the lines 2 to 8 in this step.
I am having issue with the Lab C1 W4 when i try to to run “Terraform” [init,plan & apply] Per screen shot below. I followed the lab instructions and tried 3 times and still not getting terraform apply prompt to reply ‘yes’:
Complete!
Terraform has been installed
Terraform variables have been set
voclabs:~/environment cd terraform
voclabs:~/environment/terraform terraform init
Initializing the backend…
Successfully configured the backend “s3”! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins…
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running “terraform plan” to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
voclabs:~/environment/terraform $ terraform plan
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
voclabs:~/environment/terraform $ terraform apply
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
when i am first initiating terraform, the CLI exits to the root folder. then when i cd to terraform folder and run terraform init, i get the following error message: