AWS Connect automation scripts

0

Hi , I have created a Terraform scripts for Amazon connect instance like Hour of operation, Queues, Routing Profile etc. . However there are some dependencies like hour of operation dependent on queue etc . My question is do we need to run scripts on sequence wise like hour of operation run first then run queue. Do we need to run as sequential or we can run in one go with some options like depends_on etc. Please Suggest.

Regards Jo

질문됨 2년 전258회 조회
1개 답변
1
수락된 답변

In Terraform, most resource dependencies are handled automatically. It analyses expressions within a resource block to find references to other objects, and treats those references as implicit ordering requirements when creating, updating, or destroying resources.

However, there are some resources that have hidden dependencies and must be explicitly defined by using depends_on.

More information from this document: https://www.terraform.io/language/resources/behavior#resource-dependencies

I've seen a few IaC documentations that mention if you need to explicitly define the dependency but sometimes it doesn't. One way to find out is to test your configuration.

profile picture
joahna
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠