data_engineering_project_template icon indicating copy to clipboard operation
data_engineering_project_template copied to clipboard

ec2_public_dns not found

Open keenanandrew opened this issue 2 years ago • 0 comments

Hi there, thanks for this excellent tutorial!

I'm getting stuck at the 'make cloud-airflow' command. Everything up until then has run correctly.

However I get the following error after running make cloud-airflow:

terraform -chdir=./terraform output -raw private_key > private_key.pem && chmod 600 private_key.pem && ssh -o "IdentitiesOnly yes" -i private_key.pem ubuntu@$(terraform -chdir=./terraform output -raw ec2_public_dns) -N -f -L 8081:$(terraform -chdir=./terraform output -raw ec2_public_dns):8080 && open http://localhost:8081 && rm private_key.pem
╷
│ Error: Output "ec2_public_dns" not found
│
│ The output variable requested could not be found in the state file. If you recently added this to your configuration,
│ be sure to run `terraform apply`, since the state won't be updated with new output variables until that command is
│ run.
╵
╷
│ Error: Output "ec2_public_dns" not found
│
│ The output variable requested could not be found in the state file. If you recently added this to your configuration,
│ be sure to run `terraform apply`, since the state won't be updated with new output variables until that command is
│ run.
╵
ssh: Could not resolve hostname : Name or service not known
make: *** [Makefile:72: cloud-airflow] Error 255

I've checked the Terraform statefile, it's completely blank. Not sure if that's normal.

Running terraform apply gives the following:

╷
│ Error: No configuration files
│
│ Apply requires configuration to be present. Applying without a configuration would mark everything for destruction,
│ which is normally not what is desired. If you would like to destroy everything, run 'terraform destroy' instead.

Please advise! Thank you

keenanandrew avatar Nov 10 '23 12:11 keenanandrew