在.vscode/settings.json文件中添加以下代码,将“region”值更改为正确的区域名称:
{ "aws.profile": "default", // Update the AWS region to use throughout the toolkit "aws.region": "us-west-2" }
如果您已经使用AWS Identity Center连接到错误的区域,并且无法更改区域,请尝试删除您的VS Code凭据。这将强制您重新连接到Identity Center并选择正确的区域。要删除凭据,请打开命令面板并运行“AWS: Clear Credentials Cache”命令。