Skip to content

Commit

Permalink
Remove Hello World stack (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
addis-samtek authored Dec 11, 2024
1 parent 651fca6 commit b070e28
Showing 1 changed file with 3 additions and 35 deletions.
38 changes: 3 additions & 35 deletions .github/workflows/remove-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,7 @@ jobs:
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }}
aws-region: us-east-1
- name: remove hello world cdk stack
env:
PR_NUMBER: ${{ github.event.number }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
run: |
pushd cdk-eregs
npm install -g aws-cdk
npm install
STAGE=dev${PR_NUMBER} cdk destroy -c stage=dev${PR_NUMBER} -c account=${AWS_ACCOUNT_ID} -c region=${AWS_DEFAULT_REGION} \
dev${PR_NUMBER}-HelloWorldStack --force
popd

# Remove parsers
- name: remove parsers
env:
Expand Down Expand Up @@ -103,7 +92,7 @@ jobs:
npm install
serverless remove --stage dev${PR}
popd
- name: Destroy PR-Specific Stack
- name: Destroy PR-Specific Redirect Stack
env:
PR_NUMBER: ${{ github.event.number }}
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
Expand Down Expand Up @@ -185,25 +174,4 @@ jobs:
echo "Cleanup completed for all Docker-based stacks"
popd
# - name: Destroy PR-Text-extract Stack
# env:
# PR_NUMBER: ${{ github.event.number }}
# AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
# AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
# CDK_DEBUG: true
# ENVIRONMENT_NAME: ${{ env.ENVIRONMENT_NAME }}
# run: |
# pushd cdk-eregs
# npm install -g aws-cdk@latest @aws-sdk/client-ssm
# npm install

# # Generate the exact stack name for this PR
# STACK_NAME="cms-eregs-eph-${PR_NUMBER}-text-extractor"

# echo "Destroying PR-specific stack: ${STACK_NAME}"
# cdk destroy "${STACK_NAME}" \
# -c environment=${{ env.ENVIRONMENT_NAME }} \
# --force

# echo "Cleanup completed for stack: ${STACK_NAME}"
# popd

0 comments on commit b070e28

Please sign in to comment.