我无法访问同一个弹性beanstalk应用程序中的两个环境中的任何一个,两者的错误消息都是:
加载页面时发生问题:配置验证异常:无效的选项规格(名称空间:'aws:rds:dbinstance', OptionName: 'HasCoupledDatabase'):未知的配置设置。
我不知道如何处理这个问题(甚至不知道诚实意味着什么)。任何帮助将不胜感激!
编辑:
此消息似乎是由AWS更新引起的。似乎最好的报告地点是在AWS开发论坛上写。
我已经在这里开始了一个关于这个问题的线程,请添加您的声音:https://forums.aws.amazon.com/thread.jspa?threadID=344213&tstart=0
- 设置AWS CLI
- 创建一个.json文件,内容如下:
[
{
"Namespace": "aws:rds:dbinstance",
"OptionName": "HasCoupledDatabase"
}
]
- 运行以下命令,将YOUR_*更改为您的值:
aws elasticbeanstalk update-environment --environment-name "YOUR_ENVIRONMENT_NAME" --version-label "YOUR_VERSION_LABEL" --region="YOUR_REGION" --options-to-remove file://PATH_TO_JSON
- 欣赏;)
1. Download and setup Aws CLI if not already done
2. To download aws cli visit (https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html#cliv2-windows-install)
3. To set up aws cli follow :
4. Go to location where aws cli installed i.e. C:Program FilesAmazonAWSCLI>
5. To confirm whether installed or not -> open cmd-> type aws --version
6. if response is like (aws-cli/1.7.24 Python/2.7.9 Windows/8) then OK.
7. In CMd itself to configure aws type -> aws configure
8. Enter following data as asked in steps by aws cli :
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: json
Note : here region and default output can be skipped by pressing enter and Access Key and secret key can be generated by following these steps in your aws account
click bell icon in left side of region on top right corner -> My Security Credentials -> Access keys (access key ID and secret access key) -> create new or use existing.
9. type aws s3 ls , on cmd and if it shows your s3 bucket then connection has been made succesfully.
10. Create a json file named aws_issue.json on desktop
11. paste below content in aws_issue.json and save
[
{
"Namespace": "aws:rds:dbinstance",
"OptionName": "HasCoupledDatabase"
}
]
12. type the following command in single line on cmd with your environment , its version , region , path to aws_issue.json
aws elasticbeanstalk update-environment --environment-name
"**YOUR_ENVIRONMENT_NAME**" --version-label "**YOUR_VERSION_LABEL**" --
region="**YOUR_REGION**" --options-to-remove
file://C:Users**pathAsPerYourMachine**aws_issue.json