teleport_server Terraform 리소스 참조
이 페이지는 Teleport Terraform 프로바이더의 teleport_server 리소스에서 지원되는 값을 설명합니다.
이 페이지는 Teleport Terraform 프로바이더의 teleport_server 리소스에서 지원되는 값을 설명합니다. 사용 예시 # resource "teleport_server" "ssh_agentless" { version = "v2" sub_kind = "openssh" // Name is not required for servers, this is a special case. // When a name is not set, an UUID will be generated by Teleport and // imported back into Terraform. // Giving unique IDs to servers allows UUID-based dialing (as opposed to // host-based dialing and IP-based dialing) which is more robust than its // counterparts as it can point to a specific server if multiple servers // share the same hostname/ip. spec = { addr = "127.0.0.1:22" hostname = "test.local" } } resource "teleport_server" "ssh_agentless_eice" { version = "v2" sub_kind = "openssh-ec2-ice" metadata = { // It is recommended to put the account and instance ID as a name for EC2 Instance Connect // When dialing to this instance, teleport will detect that this is an // AWS instance ID an will contact this specific instance. This is more // robust than host-based and IP-based dialing (because several server // can have similar hostnames). name = "123456789012-i-0123456789abcdef" } spec = { addr = "127.0.0.1:22" hostname = "test.local" cloud_metadata = { aws = { account_id = "123" instance_id = "123" region = "us-east-1" vpc_id = "123" integration = "foo" subnet_id = "123" } } } } 스키마 # 필수 # sub_kind (문자열) SubKind는 일부 리소스에서 사용되는 선택적 리소스 하위 종류입니다. version (문자열) Version은 버전입니다. 선택 # metadata (속성) Metadata는 리소스 메타데이터입니다. ( 아래 중첩 스키마 참조) scope (문자열) 서버의 광고된 범위
