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,260 points
7,100 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,460 points

Related Questions In Terraform

0 votes
1 answer

Error: Error putting object in S3 bucket (example11225588): AccessDenied: Access Denied

Hi@akhtar, To upload your file in the s3 ...READ MORE

answered Jun 11, 2020 in Terraform by MD
• 95,460 points
2,950 views
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,460 points
13,369 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP