lib/sport_ngin_aws_auditor/rds_instance.rb
# Generates a name based on the RDS engine or product description
Generates a name based on the RDS engine or product description
Generates a name based on the RDS engine or product description
def engine_helper(engine)
      case
      when engine.downcase.include?('aurora')
        'Aurora'
      when engine.downcase.include?('mariadb')
        'MariaDB'
      when engine.downcase.include?('mysql')
        'MySQL'
      when engine.downcase.include?('oracle-ee')
        'Oracle EE'
      when engine.downcase.include?('oracle-se1')
        'Oracle SE One'
      when engine.downcase.include?('oracle-se2')
        'Oracle SE Two'
      when engine.downcase.include?('oracle-se')
        'Oracle SE'
      when engine.downcase.include?('postgres')
        'PostgreSQL'
      when engine.downcase.include?('sqlserver-ee')
        'SQL Server EE'
      when engine.downcase.include?('sqlserver-ex')
        'SQL Server EX'
      when engine.downcase.include?('sqlserver-se')
        'SQL Server SE'
      when engine.downcase.include?('sqlserver-web')
        'SQL Server Web'
      else
        'Unknown DB Engine'
      end
    end
def engine_helper ( engine ) case when engine . downcase . include? ( 'aurora' ) 'Aurora' when engine . downcase . include? ( 'mariadb' ) 'MariaDB' when engine . downcase . include? ( 'mysql' ) 'MySQL' when engine . downcase . include? ( 'oracle-ee' ) 'Oracle EE' when engine . downcase . include? ( 'oracle-se1' ) 'Oracle SE One' when engine . downcase . include? ( 'oracle-se2' ) 'Oracle SE Two' when engine . downcase . include? ( 'oracle-se' ) 'Oracle SE' when engine . downcase . include? ( 'postgres' ) 'PostgreSQL' when engine . downcase . include? ( 'sqlserver-ee' ) 'SQL Server EE' when engine . downcase . include? ( 'sqlserver-ex' ) 'SQL Server EX' when engine . downcase . include? ( 'sqlserver-se' ) 'SQL Server SE' when engine . downcase . include? ( 'sqlserver-web' ) 'SQL Server Web' else 'Unknown DB Engine' end end
Generates a name based on the RDS engine or product description
Generates a name based on the RDS engine or product description
engine
<not_specific>