Skip to content

Commit

Permalink
Removing sudo from user_data commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikereiddigital committed Feb 15, 2024
1 parent ff08f63 commit 24daf48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform/environments/cooker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ locals {
user_data = <<EOF
#!/bin/bash
yum update -y
sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
sudo systemctl status amazon-ssm-agent
yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
systemctl status amazon-ssm-agent
yum install httpd -y
systemctl start httpd
EOF
Expand All @@ -77,8 +77,8 @@ locals {
user_data = <<EOF
#!/bin/bash
yum update -y
sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
sudo systemctl status amazon-ssm-agent
yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
systemctl status amazon-ssm-agent
EOF
}

Expand Down

0 comments on commit 24daf48

Please sign in to comment.