Elastic Beanstalk 环境因以下有关 RDS 的错误消息而被阻止
Elastic Beanstalk environments blocked with following Error message about RDS
我无法在同一个弹性 beanstalk 应用程序中访问我的两个环境中的任何一个,两者的错误消息是:
加载页面时出现问题:配置验证异常:选项规范无效(命名空间:'aws:rds:dbinstance',选项名称:'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 Files\Amazon\AWSCLI>
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
我无法在同一个弹性 beanstalk 应用程序中访问我的两个环境中的任何一个,两者的错误消息是:
加载页面时出现问题:配置验证异常:选项规范无效(命名空间:'aws:rds:dbinstance',选项名称:'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 Files\Amazon\AWSCLI>
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