Skip to main content

Detect Lock-in Extension wrapper introduce as part of conversion tool

Project description

Installation

Extension Migration Assistant requires Python version 3.11.4 or above to run. Post cloning the assessment tool, we will need to install the dependencies.

Minimal Database Privileges on RDS or Amazon Aurora PostgreSQL Compatible

Minimal required privileges to run on PostgreSQL Databases.

CREATE USER sctanalyzer WITH LOGIN PASSWORD 'YourPassword';
GRANT CONNECT ON DATABASE <<YourDatabase>> TO sctanalyzer;
REVOKE CREATE ON SCHEMA public FROM sctanalyzer;

--Provide Grants to Extensions related tables, if it failes it implies no dependency with AWS SCT Extensions
grant usage on schema aws_oracle_ext to sctanalyzer;
GRANT SELECT ON table aws_oracle_ext.versions  TO sctanalyzer;

Assesment Tool Installation Dependency

Steps to clone and run extensionmigrationassistance on RDS or Amazon Aurora PostgreSQL Databases.

-step 1 : clone sctextensionassessment repo

git clone https://github.com/dcgadmin/extensionmigrationassistant.git

-step 2 : Create virtual environment using python(Optional, we can follow Step 4 onwards as well)

python3 -m venv <<environment_name>>

-step 3 : Activate virtual environment

source <<environment_name>>/bin/activate

-step 4 : switch to project directory

cd extensionmigrationassistant/assessment/

-step 5 : install dependencies using pip3/pip and requirement.txt

pip install -r requirements.txt (For Ubuntu / windows 64-bit)
pip3 install -r requirements.txt (For macOS)

Running Assessment tool

Extension Migration Assistant tool will need access to PostgreSQL databases, primarily on RDS or Amazon Aurora.

extension-assessment --host HOST [--port PORT] [--database DATABASE] --user USER --password PASSWORD [--pg-schema PG_SCHEMA] [--outputpath OUTPUTPATH]

You can see the details of every argument required by using following steps

cd assessment
extension-assessment --help

  --host HOST               RDS/Amazon Aurora PostgreSQL Compatible Database endpoint
  --port PORT               Database port number (Default - 5432)
  --database DATABASE       Database name (Default - postgres)
  --user USER               Database user
  --password PASSWORD       Database password
  --pg-schema PG_SCHEMA     List of Comma separated list of schema name(Optional)
  --outputpath OUTPUTPATH   Provide output path of report (Optional)

pg-schema is optional. To see the result according to schema provide single or comma separated list.If pg-schema is not provided it will assume to run for all schema within specified database.

Sample 1 - running Extension Migration Assistant on specific shcema.
extension-assessment --host HOST [--port PORT] [--database DATABASE] --user USER --password PASSWORD --pg-schema PG_SCHEMA1
Sample 2 - running Extension Migration Assistant on multiple list of schema's.
extension-assessment --host HOST [--port PORT] [--database DATABASE] --user USER --password PASSWORD --pg-schema PG_SCHEMA1,PG_SCHEMA2
Sample 3 - running Extension Migration Assistant for all schema.
extension-assessment --host HOST [--port PORT] [--database DATABASE] --user USER --password PASSWORD
Sample 4 - running Extension Migration Assistant for all schema with output to specific path
extension-assessment --host HOST [--port PORT] [--database DATABASE] --user USER --password PASSWORD --outputpath <<OUTPUT_PATH>>

Assessment Output

Once Extension Migration Assistant Assessment is completed, you will find newly created reports within a directory (SCTExtensionAssessment) as below

AWS SCT Extension Assessment Report created successfully
Report : ....\extensionassessmentreport.html
Report zip file is created successfully

You will also get a zip file which contains the html report, charts (.png) and csv file with additional dependencies details.

SCTExtensionAssessment.zip

Check out sample report generated on sample schema migrated using AWS Schema Conversion Tool to RDS PostgreSQL with its underlying Extension packs(AWS_ORACLE_EXT).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcg-extensionmigrationassistant-1.0.0.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcg_extensionmigrationassistant-1.0.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file dcg-extensionmigrationassistant-1.0.0.tar.gz.

File metadata

File hashes

Hashes for dcg-extensionmigrationassistant-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3f285ba412371b0f92331b1db1dc34e47d70ec3e4a4f3575ea0ed3a921bf1384
MD5 3d6150952ed345a522e5a97e346c5c06
BLAKE2b-256 7d4ca34b6833b692985ec80b5f13552e1cedc42afd57e67d53d4a00bce8bcc95

See more details on using hashes here.

File details

Details for the file dcg_extensionmigrationassistant-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dcg_extensionmigrationassistant-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a6f89b570a68a9bedac597f34b3e07ce06a59de880c477382d88895264b1d57
MD5 a9a9a8732f2c99201dbce6de9000adba
BLAKE2b-256 a0d3c36cbff86084200df111555ce850807c0a7d22343df23ceb004efa43e02e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page