J. *_*Ann 2 powershell amazon-s3 amazon-web-services
嗨,我正尝试使用AWS Powershell部署到Elastic Beanstalk上。
当前,我只是在尝试使用以下cmdlet获取EB环境:+ Get-EBEnvironment -ApplicationName -EnvironmentId -VersionLabel -EnvironmentName -IncludedDeletedBackTo -IncludeDeleted
这是我使用的cmdlet:Get-EBEnvironment -ApplicationName appName
但是,我收到以下错误:
Get-EBEnvironment:未指定区域,也未从持久性/ shell默认值获得区域。在C:\ Users \ lowong \ Desktop \ script.ps1:22 char:1
我是否缺少其他必须放在cmdlet中的字段?还是什么问题?
(以下是cmdlet文档的链接:http : //docs.aws.amazon.com/powershell/latest/reference/index.html? page= New-EBApplicationVersion.html& tocid= New-EBApplicationVersion)
该错误提到以下内容:
未指定区域,也未从持久/ shell默认值获得区域。
因此,您有2种可能的解决方案:
-Region参数,例如-Region us-east-1。请参阅Get-EBEnvironment Cmdlet。要么Set-DefaultAWSRegioncmdlet设置默认区域。请参阅Set-DefaultAWSRegion Cmdlet| 归档时间: |
|
| 查看次数: |
1655 次 |
| 最近记录: |