0

나는 cloudformation 템플릿에 EFS로 볼륨 ID를 전달할 때이 작동하지 않는 이유를 알아내는 데 문제 :EFS FileSystem ID를 cloudformation 템플릿에 올바르게 전달하는 방법은 무엇입니까?

Parameters: 
    EFSFileSystem: 
     Description: EFS file system to mount 
     Type: AWS::EFS::FileSystem::Id 

이 작동 중 하나를하지 않습니다

Parameters: 
    EFSFileSystem: 
     Description: EFS file system to mount 
     Type: AWS::EFS::FileSystem 

나는 오류 :

parameter type AWS::EFS::FileSystem::Id for parameter name EFSFileSystem does not exist

그러나 이것은 ID를 전달하지 (FS-XXXXXXX)

Parameters: 
    EFSFileSystem: 
     Description: EFS file system to mount 
     Type: String 

유형을 AWS :: EFS :: FileSystem :: Id로 설정하면 안됩니까?

답변

2

AWS :: EFS :: FileSystem :: Id의 자원 유형이 없습니다. FileSystem 자원 유형. 매개 변수를 cloudform에 전달하고 '유형'을 설정하는 경우 String, Number, List, CommaDelimitedList 만 될 수있는 매개 변수의 유형을 설정합니다. CloudFormation은 입력 된 값이 Cloudform Resource Type이 아닌 해당 유형 중 하나와 일치하는지 확인합니다.

Cloudform Resource Type은 AWS에서 만들 수있는 '것'입니다. 매개 변수 유형은 '무엇을'당신이 기대하는 값입니까? 이것이 Type String에서 fs-xxxxxxx 값을 전달하는 이유입니다.

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html