sparse-intern-71089
05/26/2022, 3:17 PMsparse-midnight-5337
05/27/2022, 10:33 AMpulumi up
.
I fixed this issue by using dependsOn: [service]
when defining my dictionaryItems.
const MyComputeService = new ServiceCompute(...)
new fastly.ServiceDictionaryItems('MyDictionary', {
serviceId: service.id,
dictionaryId: MyComputeService.dictionaries.apply(d => d?.[0].dictionaryId || '1234'),
items: {
'item1': config.require('item1').toString(),
'item2': config.require('item2').toString()
}
}, {dependsOn: [MyComputeService]})