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 #7177pull/77/head
parent
8eeb12b600
commit
0f5a97fa6e
|
@ -88,7 +88,7 @@ class CloudDBCredSchema extends BaseUISchema {
|
||||||
noEmpty: true,
|
noEmpty: true,
|
||||||
helpMessage: gettext('The cloud instance will be deployed in the selected region.')
|
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,
|
mode: ['create'], noEmpty: true,
|
||||||
}, {
|
}, {
|
||||||
id: 'aws_secret_access_key', label: gettext('AWS secret access key'), type: 'password',
|
id: 'aws_secret_access_key', label: gettext('AWS secret access key'), type: 'password',
|
||||||
|
|
|
@ -122,7 +122,7 @@ def get_aws_db_instances(eng_version):
|
||||||
return False, 'Session has not created yet.'
|
return False, 'Session has not created yet.'
|
||||||
|
|
||||||
if not eng_version or eng_version == '' or eng_version == 'undefined':
|
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'])
|
rds_obj = pickle.loads(session['aws']['aws_rds_obj'])
|
||||||
res = rds_obj.get_available_db_instance_class(
|
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'])
|
rds_obj = pickle.loads(session['aws']['aws_rds_obj'])
|
||||||
db_versions = rds_obj.get_available_db_version()
|
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 = []
|
versions = []
|
||||||
for value in res:
|
for value in res:
|
||||||
versions.append({
|
versions.append({
|
||||||
|
|
Loading…
Reference in New Issue