며칠 전에 AWS를 사용하기 시작했습니다.AWS : 기존 키 쌍이있는 클라우드 형성을 사용하여 스택 배포
Cloud Formation 서비스를 사용하여 스택을 배치 한 다음 배포 된 인스턴스로 SSH 할 수 있습니다. 템플릿을 만드는 동안 키 쌍을 포함 할 수있는 옵션이 표시되지 않았습니다.
this에 따르면 처음부터 키 쌍이 필요합니다.
키 쌍이있는 스택을 배포하면 어떻게 배포 할 수 있습니까? JSON이 잘 형성되지 :
이 다음과 같은 오류가 발생"Parameters" : {
"AccessControl" : {
"Description" : " The IP address range that can be used to access the CloudFormer tool. NOTE: We highly recommend that you specify a customized address range to lock down the tool.",
"Type": "String",
"MinLength": "9",
"MaxLength": "18",
"Default": "0.0.0.0/0",
"AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
"ConstraintDescription": "must be a valid IP CIDR range of the form x.x.x.x/x."
}
"KeyName" : {
"Description" : " Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type": "String",
"MinLength": "1",
"MaxLength": "64",
"AllowedPattern": "[-_ a-zA-Z0-9]*",
"ConstraintDescription": "Can contain only alphanumeric characters, spaces, dashes, and underscores."
}
: "템플릿 검증 오류 : 템플릿 형식 오류
는 또한 매개 변수 아래에 키 이름 섹션을 추가하여 텍스트 파일에 템플릿을 변경 시도 . "Linux 및 Windows 인스턴스로 원격으로 액세스 할 수 있기를 원합니다.
감사를 지정하려면 "기본"을 사용할 수는, 나를 위해 작동합니다. :) – Kino