inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

windows 환경에서 초기 스크립트 실행

68

Sangki Jung

작성한 질문수 13

0

git fork 까지 한 이후에

각 repo 들을 git clone으로 자기 로컬PC에 가져오는게 맞나요?

다른 리눅스 서버 따로 띄워서 거기에서 git clone에서 실행해봤는데도, 오류가 발생하네요.시작조차 못하고있어서 난감하네요 ㅠ 도움 부탁드립니다.

 

$ sh bootstrap.sh remove ======= DOCKER_NAME: 1795b1fa01ef An error occurred (UnrecognizedClientException) when calling the DeleteLogGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid. Error: could not create cluster provider from options: checking AWS STS access – cannot get role ARN for current session: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: ac18f37b-ef0c-46f8-b46b-298e078c802c, api error InvalidClientTokenId: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DescribeAutoScalingGroups operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DescribeLaunchConfigurations operation: The security token included in the request is invalid. An error occurred (AuthFailure) when calling the DescribeAddresses operation: AWS was not able to validate the provided access credentials An error occurred (AuthFailure) when calling the DescribeVpcs operation: AWS was not able to validate the provided access credentials VPC_ID: Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information. An error occurred (InvalidClientTokenId) when calling the DescribeLoadBalancers operation: The security token included in the request is invalid. Usage: grep [OPTION]... PATTERNS [FILE]... Try 'grep --help' for more information. An error occurred (InvalidClientTokenId) when calling the DescribeLoadBalancers operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the ListRoles operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the ListRoles operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteRole operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the RemoveUserFromGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the RemoveUserFromGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteUser operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteUser operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroupPolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroupPolicy operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroup operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeleteGroup operation: The security token included in the request is invalid. An error occurred (AuthFailure) when calling the DescribeAddresses operation: AWS was not able to validate the provided access credentials Error: could not create cluster provider from options: checking AWS STS access – cannot get role ARN for current session: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f5ec21e1-c705-4e83-8928-2ffd7dd3bb96, api error InvalidClientTokenId: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the ListKeys operation: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the ListTables operation: The security token included in the request is invalid. An error occurred (InvalidAccessKeyId) when calling the ListBuckets operation: The AWS Access Key Id you provided does not exist in our records. An error occurred (UnrecognizedClientException) when calling the DeleteLogGroup operation: The security token included in the request is invalid. An error occurred (AuthFailure) when calling the DeleteKeyPair operation: AWS was not able to validate the provided access credentials An error occurred (UnrecognizedClientException) when calling the DescribeRepositories operation: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the DescribeCluster operation: The security token included in the request is invalid. An error occurred (UnrecognizedClientException) when calling the DeleteRepository operation: The security token included in the request is invalid. An error occurred (InvalidClientTokenId) when calling the DeletePolicy operation: The security token included in the request is invalid. ##[ Summary ]########################################################## - in VM export KUBECONFIG='/topzone/kubeconfig_topzone-k8s' - outside of VM export KUBECONFIG='kubeconfig_topzone-k8s' - kubectl get nodes ####################################################################### ##[ Summary ]########################################################## echo You might need to delete these resources. echo VPC: topzone-k8s-vpc echo ECR: ####################################################################### No changes. No objects need to be destroyed. Either you have not created any objects yet or the existing objects were already deleted outside of Terraform. ╷ │ Warning: Value for undeclared variable │ │ The root module does not declare a variable named "instance_type" but a value was found in file ".auto.tfvars". If you meant to use this value, add a "variable" block to the configuration. │ │ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of these warnings, use the │ -compact-warnings option. ╵ ╷ │ Warning: Value for undeclared variable │ │ The root module does not declare a variable named "k8s_config_path" but a value was found in file ".auto.tfvars". If you meant to use this value, add a "variable" block to the configuration. │ │ To silence these warnings, use TF_VAR_... environment variables to provide certain "global" settings to all configurations in your organization. To reduce the verbosity of these warnings, use the │ -compact-warnings option. ╵ ╷ │ Warning: Values for undeclared variables │ │ In addition to the other similar warnings shown, 3 other variable(s) defined without being declared.

답변 1

0

인프런 AI 인턴

안녕하세요, 인프런 AI 인턴입니다.

Sangki Jung님께서 겪고 계신 문제에 대해 답변 드리겠습니다.

현재 발생하는 오류는 InvalidClientTokenId와 같은 AWS 자격 증명 관련 오류로 보입니다. 이는 AWS CLI 또는 SDK를 통해 요청 시 자격 증명이 올바르지 않다는 것을 의미할 수 있습니다. 다음은 이러한 문제를 해결하기 위한 일반적인 방법입니다:

  1. AWS 자격 증명 재확인: 사용 중인 AWS 액세스 키와 비밀 액세스 키가 올바르고 유효한지 확인하세요. 잘못되었거나 만료된 키를 사용하고 있을 수 있습니다.

  2. AWS CLI 구성: Windows 환경에서 AWS CLI가 제대로 구성되어 있는지 확인하세요. 다음 명령어로 자격 증명을 확인할 수 있습니다.

    aws configure
    

    위 명령어를 실행해서 올바른 AWS 자격 증명을 입력하세요.

  3. 권한 확인: AWS IAM 정책에 따라 충분한 권한이 부여되어 있는지 확인하세요. 특정 작업을 수행하는 데 필요한 권한이 없으면 요청이 실패할 수 있습니다.

  4. 클러스터 환경의 적절한 설정: 사용하고 있는 클러스터 환경에 AWS의 접속과 자격 증명이 제대로 설정되어 있는지 확인하세요.

  5. AWS 자격 증명 재설정 및 테스트: 문제가 지속될 경우, AWS 웹 콘솔에서 새로운 자격 증명을 생성하고 이를 사용해 다시 설정해 보세요.

  6. 로그 및 경고 메시지 확인: 발생한 모든 경고 및 오류 메시지가 정확히 어떤 상황에서 발생하는지 세부적으로 확인하고, 이에 따라 대응 작업을 수행하세요.

보다 구체적인 조치 사항은 환경 설정과 사용하는 스크립트에 따라 다를 수 있습니다. 추가적으로, AWS의 IAM 모범사례를 참조하여 전반적인 설정을 검토하는 것도 고려해 보세요.

문제가 해결되길 바랍니다. 추가적인 질문이 있으시면 언제든지 말씀해 주세요. 감사합니다.

백준 서비스 종료

9

781

1

강의 추천해주세요

2

18

1

구글 폼 작성 완료!

1

33

1

시험 시작하기 전에 한 가지 질문 있습니다.

1

41

2