Skip to content

Commit

Permalink
Merge pull request #111 from kookmin-sw/jihun
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
jhM00n authored May 23, 2024
2 parents 007325c + 548e4eb commit 09a1ec4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sskai_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ def create_setup():
container_create_command = f"./container_build.sh {ecr_uri} {region} {awscli_profile}"
print("Building and Deploying in progress.")
print("It takes about 15 minutes.")
print("Processing...\n")
subprocess.run(container_create_command, check=True, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print("Complete.")
break
elif build_type == "delete":
container_delete_command = f"./delete_container.sh {ecr_uri} {region} {awscli_profile}"
print("Deleting in progress.")
print("It takes about 5 minutes.")
print("Processing...\n")
subprocess.run(container_delete_command, check=True, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print("Complete.")
break
Expand All @@ -106,6 +108,7 @@ def create_setup():
# Terraform apply 명령 실행
terraform_apply_command = f"terraform apply --auto-approve --var region={region} --var awscli_profile={awscli_profile} --var container_registry={ecr_uri} --var main_suffix={main_suffix}"
print("It takes about 20 minutes to create.")
print("Processing...\n")
subprocess.run(terraform_apply_command, check=True, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print("Complete.")
break
Expand All @@ -115,7 +118,8 @@ def create_setup():
subprocess.run(terraform_init_command, check=True, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# Terraform destroy 명령 실행
terraform_destroy_command = f"terraform destroy --auto-approve --var region={region} --var awscli_profile={awscli_profile} --var container_registry={ecr_uri} --var main_suffix={main_suffix}"
print("It takes about 20 minutes to delete.")
print("It takes about 20 minutes to delete.")
print("Processing...\n")
subprocess.run(terraform_destroy_command, check=True, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print("Complete.")
break
Expand Down

0 comments on commit 09a1ec4

Please sign in to comment.