When running the AWS CLI command provided in the DeepLearning.AI lab to retrieve the RDS endpoint:
aws rds describe-db-instances --db-instance-identifier de-c1w2-rds --output text --query "DBInstances[].Endpoint.Address"
I receive the following error:
Invalid endpoint: https://rds..amazonaws.com
This suggests the AWS CLI is attempting to call the RDS service without a region specified. Adding an explicit region (e.g., --region us-east-1) resolves the endpoint error. I am using the provided lab environment and have not manually configured AWS credentials.
FYI: There will be some delay before anyone can assist with this issue, since this course has no active mentors, and the DLAI staff is on holiday until Jan 2, 2026.
I am encountering an issue when attempting to add a region flag to my AWS CLI command.
When I run: aws rds describe-db-instances --db-instance-identifier de-c1w4-rds --region us-east-1 --output text --query "DBInstances[].Endpoint.Address"
I receive this error: An error occurred (InvalidClientTokenId) when calling the DescribeDBInstances operation: The security token included in the request is invalid.
If I remove the region parameter, I receive the “invalid endpoint” error instead…