Skip to content

Commit 9daa4ef

Browse files
committed
Unsubscribing to a notification
1 parent 65c8145 commit 9daa4ef

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

azure/azure-pr-teardown-pipeline.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ jobs:
3737
role: "auto-ops"
3838
profile: "apim-dev"
3939
aws_account: "dev"
40+
- bash: |
41+
export AWS_PROFILE=apim-dev
42+
echo "Unsubscribing an SQS Queue from MNS."
43+
pyenv install -s 3.11.11
44+
pyenv local 3.11.11
45+
echo "Setting up poetry environment..."
46+
poetry env use 3.11
47+
poetry install --no-root
48+
49+
echo "Setting PYTHONPATH..."
50+
export PYTHONPATH=$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription
51+
52+
echo "Unsubscribing an MNS for notifications..."
53+
poetry run python src/subscribe_mns.py
54+
displayName: "Delete MNS Subscription"
55+
workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription"
4056
4157
- bash: |
4258
echo "##vso[task.setvariable variable=AWS_DEFAULT_REGION]eu-west-2"

0 commit comments

Comments
 (0)