Deploying Create Database Users Lambda v183 to intg #323
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TDR Deploy Create Database Users Lambda | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
type: choice | |
description: 'Environment' | |
required: true | |
options: | |
- intg | |
- staging | |
- prod | |
default: 'intg' | |
to-deploy: | |
description: 'Version to deploy' | |
required: true | |
run-name: Deploying Create Database Users Lambda ${{inputs.to-deploy}} to ${{inputs.environment}} | |
permissions: | |
id-token: write | |
contents: write | |
jobs: | |
deploy_keycloak_users: | |
uses: nationalarchives/tdr-github-actions/.github/workflows/lambda_deploy.yml@main | |
with: | |
lambda-name: create-keycloak-user | |
deployment-package: create-db-users.jar | |
environment: ${{ github.event.inputs.environment }} | |
to-deploy: ${{ github.event.inputs.to-deploy }} | |
secrets: | |
ACCOUNT_NUMBER: ${{ secrets.ACCOUNT_NUMBER }} | |
MANAGEMENT_ACCOUNT: ${{ secrets.MANAGEMENT_ACCOUNT }} | |
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }} | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
deploy_db_users: | |
needs: deploy_keycloak_users | |
uses: nationalarchives/tdr-github-actions/.github/workflows/lambda_deploy.yml@main | |
with: | |
lambda-name: create-db-users | |
deployment-package: create-db-users.jar | |
environment: ${{ github.event.inputs.environment }} | |
to-deploy: ${{ github.event.inputs.to-deploy }} | |
secrets: | |
ACCOUNT_NUMBER: ${{ secrets.ACCOUNT_NUMBER }} | |
MANAGEMENT_ACCOUNT: ${{ secrets.MANAGEMENT_ACCOUNT }} | |
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }} | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
deploy_bastion_user: | |
needs: deploy_db_users | |
uses: nationalarchives/tdr-github-actions/.github/workflows/lambda_deploy.yml@main | |
with: | |
lambda-name: create-bastion-user | |
deployment-package: create-db-users.jar | |
environment: ${{ github.event.inputs.environment }} | |
to-deploy: ${{ github.event.inputs.to-deploy }} | |
secrets: | |
ACCOUNT_NUMBER: ${{ secrets.ACCOUNT_NUMBER }} | |
MANAGEMENT_ACCOUNT: ${{ secrets.MANAGEMENT_ACCOUNT }} | |
WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }} | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |