Skip to content

Commit 9fabfd6

Browse files
committed
Remove ECR repository import step from deployment workflow
- Eliminated the step that imported the ECR repository into Terraform state, streamlining the deployment process. - This change simplifies the workflow by removing unnecessary checks for existing resources, focusing on a more straightforward deployment approach.
1 parent b79796b commit 9fabfd6

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

.github/workflows/deploy-backend.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,6 @@ jobs:
7979
working-directory: infrastructure/instance
8080
run: make init
8181

82-
- name: Import ECR repository if it exists outside Terraform state
83-
if: ${{ !failure() }}
84-
working-directory: infrastructure/instance
85-
env:
86-
AWS_REGION: eu-west-2
87-
run: |
88-
REPO_NAME="imms-${SUB_ENVIRONMENT}-processing-repo"
89-
if aws ecr describe-repositories --repository-names "${REPO_NAME}" --region "${AWS_REGION}" >/dev/null 2>&1; then
90-
echo "ECR repository ${REPO_NAME} exists in AWS, importing into Terraform state if needed..."
91-
terraform import aws_ecr_repository.processing_repository "${REPO_NAME}" || true
92-
fi
93-
9482
- name: Terraform Plan
9583
# Ignore cancellations to prevent Terraform from being killed while it holds a state lock
9684
# A stuck process can still be killed with the force-cancel API operation

0 commit comments

Comments
 (0)