Skip to content

Commit c692428

Browse files
committed
remove aws ssm and creds dirs
1 parent ecc2d51 commit c692428

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,5 @@ To revert you can just run:
176176
- If the registration was successful but you can't see Ping Status and IP Address for the Runner on StackGuardian Platform inside the Runner Group's -> Runner Instances tab please re-register runner using the following command:
177177
```bash
178178
./main.sh deregister --sg-node-token "TOKEN" --organization "ORG" --runner-group "RUNNER_GROUP" && \
179-
rm -rf /var/lib/amazon/ssm/ ~/.aws/credentials && \
180179
./main.sh register --sg-node-token "TOKEN" --organization "ORG" --runner-group "RUNNER_GROUP"
181180
```

main.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,14 @@ clean_local_setup() { #{{{
614614
./aws-credentials \
615615
./db-state \
616616
/var/log/registration \
617-
./ssm-binaries >&/dev/null
617+
./ssm-binaries \
618+
/var/lib/amazon/ssm \
619+
/root/.aws/credentials >&/dev/null
618620
clean_cron
619621

622+
# Wait for AWS SSM Managed Instance to deregister on AWS side
623+
sleep 10s
624+
620625
return 0
621626
}
622627
#}}}: clean_local_setup

0 commit comments

Comments
 (0)