Skip to content

Commit

Permalink
fix(ssm): remove 'sudo' unnecessary command from user data
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-ook authored Nov 3, 2022
1 parent a04c753 commit 65e3b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ data "cloudinit_config" "ng" {
content_type = "text/x-shellscript"
content = <<-EOT
#!/bin/bash
sudo yum update -y
yum update -y
yum install -y amazon-cloudwatch-agent
/opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s
EOT
Expand Down

0 comments on commit 65e3b5c

Please sign in to comment.