Ssh sqlplus:在terraform中使用remote exec运行sh脚本时未找到命令
我正在尝试在oracle rds实例中运行脚本文件,该脚本文件正在手动成功运行,但在使用terraform运行时出现显示sqlplus:command not found错误Ssh sqlplus:在terraform中使用remote exec运行sh脚本时未找到命令,ssh,terraform,devops,sqlplus,terraform-provider-aws,Ssh,Terraform,Devops,Sqlplus,Terraform Provider Aws,我正在尝试在oracle rds实例中运行脚本文件,该脚本文件正在手动成功运行,但在使用terraform运行时出现显示sqlplus:command not found错误 null_resource.schemaCreation7 (remote-exec): Connecting to remote host via SSH... null_resource.schemaCreation7 (remote-exec): Host: 18.183.170.128 null
null_resource.schemaCreation7 (remote-exec): Connecting to remote host via SSH...
null_resource.schemaCreation7 (remote-exec): Host: 18.183.170.128
null_resource.schemaCreation7 (remote-exec): User: ec2-user
null_resource.schemaCreation7 (remote-exec): Password: false
null_resource.schemaCreation7 (remote-exec): Private key: true
null_resource.schemaCreation7 (remote-exec): Certificate: false
null_resource.schemaCreation7 (remote-exec): SSH Agent: false
null_resource.schemaCreation7 (remote-exec): Checking Host Key: false
null_resource.schemaCreation7 (remote-exec): Connected!
null_resource.schemaCreation7 (remote-exec): /tmp/terraform_1801902043.sh: line 4: sqlplus: command not found
null_resource.schemaCreation7 (remote-exec): sed: can't read schemaCreation.sh: No such file or directory`enter code here`