Skip to content
Discussion options

You must be logged in to vote

안녕하세요!
data.aws_ami 데이터 소스에 대한 문서는 다음과 같습니다.

Output Parameters의 정보는 문서에서 다음과 같이 확인하실 수 있는데, data.aws_ami.*.image_iddata.aws_ami.*.id는 동일하다고 설명하고 있습니다.

image_id - The ID of the AMI. Should be the same as the resource id.

테라폼을 자주 사용하더라도 다루는 리소스와 데이터소스 종류가 많다보니 외워서 하기보다는 항상 문서를 확인해가며 작업을 하게 됩니다. 그러다보니 강의 초반에 id를 사용했던 것을 그새 잊고... 또 다시 문서를 보다가 image_id를 사용한 것으로 확인 됩니다. ㅎㅎ

별 이유는 없고, 둘 모두 같은 값이라서 정상 동작합니다!

Replies: 2 comments 5 replies

Comment options

posquit0
Dec 15, 2021
Maintainer Sponsor

You must be logged in to vote
3 replies
@yunmo-k
Comment options

@yunmo-k
Comment options

@posquit0
Comment options

posquit0 Dec 15, 2021
Maintainer Sponsor

Answer selected by posquit0
Comment options

You must be logged in to vote
2 replies
@posquit0
Comment options

posquit0 Dec 15, 2021
Maintainer Sponsor

@yunmo-k
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants