Skip to content

Commit

Permalink
reset infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
esxr committed Sep 4, 2023
1 parent 5a4c1ed commit 83f39b3
Show file tree
Hide file tree
Showing 3 changed files with 1,530 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ jobs:
- name: Apply Terraform changes
run: |
terraform init
# terraform destroy -auto-approve && terraform apply -auto-approve
terraform apply \
-auto-approve \
-replace=aws_ecr_repository.studyoracle_server \
-replace=aws_ecr_repository.studyoracle_worker \
-replace=aws_ecs_cluster.studyoracle \
-replace=aws_ecs_service.studyoracle \
-replace=aws_ecs_task_definition.studyoracle_worker \
-replace=aws_ecs_task_definition.studyoracle_server \
-replace=aws_route53_record.studyoracle
terraform destroy -auto-approve && terraform apply -auto-approve
# terraform apply \
# -auto-approve \
# -replace=aws_ecr_repository.studyoracle_server \
# -replace=aws_ecr_repository.studyoracle_worker \
# -replace=aws_ecs_cluster.studyoracle \
# -replace=aws_ecs_service.studyoracle \
# -replace=aws_ecs_task_definition.studyoracle_worker \
# -replace=aws_ecs_task_definition.studyoracle_server \
# -replace=aws_route53_record.studyoracle
continue-on-error: true

- name: Apply terraform once more (sometimes AutoScaling fails)
Expand Down
3 changes: 3 additions & 0 deletions credentials
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default]
aws_access_key_id=AKIAXTY2H6XNF4BYJ3EF
aws_secret_access_key=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
Loading

0 comments on commit 83f39b3

Please sign in to comment.