Skip to content

Commit 49b5637

Browse files
authored
Merge pull request #12 from manikandan-thangavelu-rl/main
Fix: SSM parameter update fail on EC2 provision
2 parents be2e385 + b437a04 commit 49b5637

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • RStudio/machine-images/config/infra/files/rstudio

RStudio/machine-images/config/infra/files/rstudio/set-password

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ password=$(echo -n "${instance_id}${secret}" | sha256sum | awk '{print $1}')
99
echo "rstudio-user:$password" | /usr/sbin/chpasswd
1010
echo "Set rstudio-user password"
1111

12+
sleep 10
1213
public_key=$(curl http://localhost:8787/auth-public-key)
1314
instance_region=$(curl -s "http://169.254.169.254/latest/meta-data/placement/region")
1415
aws ssm put-parameter --name "/rstudio/publickey/sc-environments/ec2-instance/${instance_id}" --value $public_key --region $instance_region --type SecureString --overwrite

0 commit comments

Comments
 (0)