You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
program = ["python", "${path.module}/secret.py", "-id", "SFTP-Key", "-keyname", "private-key"]
}
output "Private Key" {
value = "${data.external.script}"
}
Expected Behavior
I am hoping for the script to output the variable as it would be if the python script was run (stdout).
Actual Behavior
I believe I need to include an attribute such as ${data.external.script.*}, ${data.external.script.all}, etc.?
`Error: Error loading C:\Users\oliverj\Documents\Code\github\test\test.tf: Error reading config for output Private Key: data.external.script: data variables must be four parts: data.TYPE.NAME.ATTR in:
It looks like the debugging attempts in hashicorp/terraform#20586 were going in the right direction. If the advice given there doesn't help, please reopen this issue including a valid Terraform config file and the Python script needed for a minimal reproduction.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
This issue was originally opened by @JasonOliverEmaze as hashicorp/terraform#20586. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Expected Behavior
I am hoping for the script to output the variable as it would be if the python script was run (stdout).
Actual Behavior
I believe I need to include an attribute such as ${data.external.script.*}, ${data.external.script.all}, etc.?
`Error: Error loading C:\Users\oliverj\Documents\Code\github\test\test.tf: Error reading config for output Private Key: data.external.script: data variables must be four parts: data.TYPE.NAME.ATTR in:
${data.external.script}`
Steps to Reproduce
terraform init
terraform plan
orterraform apply
References
The text was updated successfully, but these errors were encountered: