AWS cloud deployment issues fixed:

1) A console error was logged for db version 9.6.1 due to an update to boto3
 2) Unmask Access Key Field.
 3) Update the supported database version list to include Postgres 10 and above.

refs #7177
pull/77/head
Yogesh Mahajan 2022-03-04 11:13:06 +05:30 committed by Akshay Joshi
parent 8eeb12b600
commit 0f5a97fa6e
2 changed files with 4 additions and 3 deletions

View File

@ -88,7 +88,7 @@ class CloudDBCredSchema extends BaseUISchema {
noEmpty: true,
helpMessage: gettext('The cloud instance will be deployed in the selected region.')
},{
id: 'aws_access_key', label: gettext('AWS access key'), type: 'password',
id: 'aws_access_key', label: gettext('AWS access key'), type: 'text',
mode: ['create'], noEmpty: true,
}, {
id: 'aws_secret_access_key', label: gettext('AWS secret access key'), type: 'password',

View File

@ -122,7 +122,7 @@ def get_aws_db_instances(eng_version):
return False, 'Session has not created yet.'
if not eng_version or eng_version == '' or eng_version == 'undefined':
eng_version = '9.6.1'
eng_version = '10.17'
rds_obj = pickle.loads(session['aws']['aws_rds_obj'])
res = rds_obj.get_available_db_instance_class(
@ -148,7 +148,8 @@ def get_aws_db_versions():
rds_obj = pickle.loads(session['aws']['aws_rds_obj'])
db_versions = rds_obj.get_available_db_version()
res = db_versions['DBEngineVersions']
res = list(filter(lambda val: not val['EngineVersion'].startswith('9.6'),
db_versions['DBEngineVersions']))
versions = []
for value in res:
versions.append({