1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
1
Hello.
When you connect to Lightsail and execute the command below, you will see that "AmazonLightsailInstanceRole" is set.
"AmazonLightsailInstanceRole" is an IAM role set on the Lightsail infrastructure side, so I don't think it can be changed.
aws sts get-caller-identity
So, why not try setting the AWS credentials for the Linux user you set up in Cloud9?
Try attaching the necessary IAM policy such as "codewhisperer:GenerateRecommendations" to this AWS authentication information.
Please refer to the following document for setting AWS credentials.
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
Contenido relevante
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año
AmazonLightsailInstanceRole
role is not usable Cloud9. You will need to create a dedicated IAM User with permissions that are necessary for Cloud9, and then doaws configure
on the instance, and it will prompt you to enter the IAM user's access key and the secret key.aws configure
will store these credentials on instance in ~/.aws/` as described in the doc link provided by Riku.