Reputation: 1390
I am unable to access either of my two environments within the same elastic beanstalk application, the error message for both is:
A problem occurred while loading your page: Configuration validation exception: Invalid option specification (Namespace: 'aws:rds:dbinstance', OptionName: 'HasCoupledDatabase'): Unknown configuration setting.
I have no idea how to approach this problem (or even what it means to be honest). Any help would be appreciated!
EDIT :
This message appears to have been caused by an AWS update. It seems the best place to report is to write on the AWS Dev Forums.
I had started a thread regarding this issue here, please add your voice: https://forums.aws.amazon.com/thread.jspa?threadID=344213&tstart=0
Upvotes: 4
Views: 2588
Reputation: 1
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
Upvotes: 0
Reputation: 86
[
{
"Namespace": "aws:rds:dbinstance",
"OptionName": "HasCoupledDatabase"
}
]
aws elasticbeanstalk update-environment --environment-name "YOUR_ENVIRONMENT_NAME" --version-label "YOUR_VERSION_LABEL" --region="YOUR_REGION" --options-to-remove file://PATH_TO_JSON
Upvotes: 7