Before testing it by using your 'Terraform environment
', I would also recommend you to test the scenario by passing the startup script directly
(OR from a local file
OR from a Cloud Storage
) to see if it is executing properly. If it is providing the expected result, then you might need to get in touch with the Terraform's support channel
for an additional review of your code. If it is not providing an expected result, then I would strongly recommend you to report it as a defect(bug) using the Google Cloud Platform's issue-tracker report
channel. While opening the issue-tracker report, try to include as many details, such as reproduction steps, documents you were following, etc.