We create Rstudio workspace using the Rstudio AMI, but I found the "/rstudio/publickey/sc-environments/ec2-instance/${instanceId}" parameter is not created in AWS SSM.
I access to the ec2 of Rstudio AMI, and run set-password manually, got below error:
[ec2-user@ip-172-31-38-65 bin]$ sudo sh "/usr/local/bin/set-password"
Set rstudio-user password
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to localhost port 8787 after 6 ms: Couldn't connect to server
Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
usage: aws [options] [ ...] [parameters]
To see help text, you can run:
aws help
aws help
aws help
aws: error: argument --value: expected one argument
Stored rstudio public key in SSM
It seems we cannot connect to localhost:8787 to get public key.
Could you please help to check it?
We create Rstudio workspace using the Rstudio AMI, but I found the "/rstudio/publickey/sc-environments/ec2-instance/${instanceId}" parameter is not created in AWS SSM.
I access to the ec2 of Rstudio AMI, and run set-password manually, got below error:
[ec2-user@ip-172-31-38-65 bin]$ sudo sh "/usr/local/bin/set-password" Set rstudio-user password % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to localhost port 8787 after 6 ms: Couldn't connect to server Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
usage: aws [options] [ ...] [parameters]
To see help text, you can run:
aws help aws help
aws help
aws: error: argument --value: expected one argument
Stored rstudio public key in SSM
It seems we cannot connect to localhost:8787 to get public key. Could you please help to check it?
Thanks