terraform_pages_issue
TF_LOG=debug
environment variable so if you on Linux then just TF_LOG=debug terraform apply
8 Replies
Well I finally realized I had accidentally set the start date on the token and not the end date. So that fixed 1 issue but I'm still getting an error.
If you run with the log variable it will show the actual response with any error information
@Cyb3r-Jok3 here is the log, it looks like it was repeating over and over again so I trimmed it up, hopefully not too much. https://gist.github.com/snaveevans/68db6118a2c8c9f4cb88fe9a407871a9
That's weird. Just check with one of my projects and it works fine. If you are able to open a support ticket then you should, else you can make an issue on the GitHub repo
Do you have an example of a simple pages terraform file that worked for you? I tried another project and I'm still getting 500s.
I guess maybe this will could help as well to determine if my terraform file is bad.
Oh maybe try adding
to your resource.
@Cyb3r-Jok3 Sorry took me a bit to come around and test it but it works! The only changes that were made were the following
Seems minor but obviously something in there did it.
But 2 additional questions that maybe you could help answer.
1. The deployment wasn't created automatically, is there something that can be done to enable them automatically?
2. How do you configure account_id via
account_id = var.account_id
? I'd like to configure mine in another way other than plain text, I have yet to commit it because I don't want it in there.1. I don't believe the first deploy happens automatically but any after the project has been created should work
2. Using terraform variables https://developer.hashicorp.com/terraform/language/values/variables