Extension which validates licenses using AWS License Manager
- The
extension-update-pom.yml
file updates the Liquibase version of the extension in thepom.xml
file whenever there is a new Liquibase Release. It listens to therepository_dispatch
event calledoss-released-version
from theliquibase/liquibase
repository and then runs the workflow specified in theextension-update-pom.yml
file. - We release a new version of
liquibase-aws-license-service
only when it is required, as this is a PRO extension. - When there is a new
liquibase-aws-license-service
version release, the dependabot in LPM(liquibase package manager) repository creates a PR: example : https://github.com/liquibase/liquibase-package-manager/pull/430/files#diff-0b0a9d274bd84c7dbfff4680de10599cd0d96458b06b74a925b2bcd3e3fc2fadR15. We need to manually merge the PR. Make sure to review and merge the PR before proceeding. - The below steps run on every OSS release.
- a. The
dependabot.yml
file checks for new versions of dependencies forpackage-ecosystem: "docker"
and creates a pull request to update the dependencies, specifically for new version of liquibase docker . - b. The workflow file
dependabot-pr-merge-docker-changes.yml
auto merges the dependabot PR containing the new Docker OSS version, - c. The
deploy-extension-to-marketplace.yml
file runs and publishes the extension to theLiquibase AWS Marketplace
.
- a. The
- Run
Docker Build and Push to AWS Marketplace
https://github.com/liquibase/liquibase-aws-license-service/actions/workflows/deploy-extension-to-marketplace.yml with the "test_tag_number". - NOTE: it is going to take a while for the new version to be approved. Approximate 30mins.
- After the workflow is run, navigate to AWS account
LiquibaseAWSMP
https://aws.amazon.com/marketplace/management/products/prod-l2panlvbozc5e@23/overview/versions - Click on the "test_tag_number" Version you want to restrict and wait for the approval. NOTE: it is going to take a while for the version to be restricted. Approximate 15mins.
- Begin your testing from the task definitions you have https://us-east-1.console.aws.amazon.com/ecs/v2/task-definitions?region=us-east-1, after modifying your docker image to point to 709825985650.dkr.ecr.us-east-1.amazonaws.com/liquibase/liquibase/liquibasepro:{test_tag_number}
-
We have a
LiquibaseAWSMP
AWS account where we have listed the extension in the AWS Marketplace. -
All the QA's and Dev's should have access to this account.
-
We have AWS Fargate Cluster called
aws-mp-test-cluster
setup in this account where we can run the Liquibase commands. -
Most of the liquibase commands should already be defined under
Task Definitions
section in the ECS Cluster. -
All you do is navigate to
Tasks
tab,Run New Task
, underFamily
select the task definition you want to run, and then click onCreate
. -
You can also run the task using the
aws-cli
command.aws ecs run-task --cluster aws-mp-test-cluster --task-definition update-liquibase
-
To check logs of the task, click on the task you just ran under
Tasks
tab. And then navigate toLogs
tab. -
To add more commands to test in the
aws-mp-test-cluster
, you can add them in theTask Definitions
section. -
Contact the DevOps team to get access to the
LiquibaseAWSMP
AWS account or any other help required.