Error error executing tmp terraform 1104475889 sh Process exited with status 1

0 votes

Hi Guys,

I am trying to install one EC2 instance using terraform, but it is showing me the below error.

aws_instance.myin2 (remote-exec): Failed to start httpd.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
aws_instance.myin2 (remote-exec): See system logs and 'systemctl status httpd.service' for details.
Error: error executing "/tmp/terraform_1104475889.sh": Process exited with status 1

How can I solve this error?

Jun 15, 2020 in Terraform by akhtar
• 38,180 points
1,240 views

1 answer to this question.

0 votes
Hi@akhtar,

You are trying to run a remote command using terraform. So you need sudo user. Before running your command use sudo, it will resolve the error.
answered Jun 15, 2020 by MD
• 95,140 points

Related Questions In Terraform

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error refreshing state: AccessDenied: Access Denied status code: 403

Hi@akhtar, I also faced the same issue. Then ...READ MORE

answered Sep 9, 2020 in Terraform by MD
• 95,140 points
2,719 views