Skip to content

Commit

Permalink
Remove unnecessary "sudo" use in user-data script
Browse files Browse the repository at this point in the history
  • Loading branch information
pcholakov committed Nov 29, 2023
1 parent 708898a commit 9a82fbf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/restate-constructs/single-node-restate-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,17 @@ export class SingleNodeRestateInstance extends Construct implements RestateInsta
const adotTag = props.adotTag ?? ADOT_DOCKER_DEFAULT_TAG;
const restateInitCommands = ec2.UserData.forLinux();
restateInitCommands.addCommands(
"sudo yum update -y",
"sudo yum install -y docker",
"sudo systemctl enable docker.service",
"sudo systemctl start docker.service",
"yum update -y",
"yum install -y docker",
"systemctl enable docker.service",
"systemctl start docker.service",
[
"docker run --name adot --restart unless-stopped --detach",
" -p 4317:4317 -p 55680:55680 -p 8889:8888",
` public.ecr.aws/aws-observability/aws-otel-collector:${adotTag}`,
].join(""),
[
"sudo docker run --name restate --restart unless-stopped --detach",
"docker run --name restate --restart unless-stopped --detach",
" --volume /var/restate:/target --network=host",
" -e RESTATE_OBSERVABILITY__LOG__FORMAT=Json -e RUST_LOG=info,restate_worker::partition=warn",
" -e RESTATE_OBSERVABILITY__TRACING__ENDPOINT=http://localhost:4317",
Expand Down

0 comments on commit 9a82fbf

Please sign in to comment.