Skip to content

Commit

Permalink
Merge pull request #110 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 1827a35 + cdc045f commit 007325c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sskai_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ def create_setup():
print("Invalid REGION format. Please enter a region in the format a-b-c (e.g., ap-northeast-2).")

while True:
awscli_profile = input("Enter AWSCLI_PROFILE: ")
awscli_profile = input("Enter AWSCLI PROFILE: ")
if is_valid_aws_profile(awscli_profile):
break
else:
print("Invalid AWSCLI_PROFILE. Please enter a valid AWS CLI profile name.")

main_suffix = input("Enter MAIN_SUFFIX: ")
main_suffix = input("Enter MAIN SUFFIX: ")

# ecr_uri 생성
account_id_command = f"aws sts get-caller-identity --query Account --output text --profile {awscli_profile}"
Expand Down Expand Up @@ -74,12 +74,12 @@ def create_setup():
print("1. Build and Deploy container image.")
print("2. Deploy SSKAI infrastructure.")
while True:
job = input("Enter the number.: ").strip()
job = input("Enter the number: ").strip()
if job == "0":
break
if job == "1":
print("You can build only with x86/64 architecture and Unix kernel (Mac/Linux).\n")
build_type = input("Enter the type of operation. (create/delete): ").strip().lower()
build_type = input("Enter the type of operation (create/delete): ").strip().lower()
if build_type == "create":
# Container build
container_create_command = f"./container_build.sh {ecr_uri} {region} {awscli_profile}"
Expand All @@ -98,7 +98,7 @@ def create_setup():
else:
print("Invalid operation type.")
elif job == "2":
terraform_type = input("Enter the type of operation. (create/delete): ").strip().lower()
terraform_type = input("Enter the type of operation (create/delete): ").strip().lower()
if terraform_type == "create":
# Terraform init 명령 실행
terraform_init_command = f"terraform init"
Expand Down

0 comments on commit 007325c

Please sign in to comment.