Skip to content

Commit 83e3cc7

Browse files
committed
unsubscribe
1 parent 20e5e35 commit 83e3cc7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

azure/azure-pr-teardown-pipeline.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,23 @@ jobs:
4343
echo "##vso[task.setvariable variable=APIGEE_ENVIRONMENT]internal-dev"
4444
displayName: Set AWS default region and Terraform state bucket
4545
46+
- bash: |
47+
export AWS_PROFILE=apim-dev
48+
echo "Subscribing SQS to MNS for notifications."
49+
pyenv install -s 3.11.11
50+
pyenv local 3.11.11
51+
echo "Setting up poetry environment..."
52+
poetry env use 3.11
53+
poetry install --no-root
54+
55+
echo "Setting PYTHONPATH..."
56+
export PYTHONPATH=$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription
57+
58+
echo "unsubscribing SQS to MNS for notifications..."
59+
poetry run python src/unsubscribe_mns.py
60+
displayName: "UnSubcribe MNS"
61+
workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/mns_subscription"
62+
4663
- bash: |
4764
export AWS_PROFILE=apim-dev
4865
account_id="$(aws sts get-caller-identity --query Account --output text)"

0 commit comments

Comments
 (0)