little-cartoon-10569
06/28/2020, 11:35 PM.apply()
the ID, I can use getDirectory which returns the dnsIPAddresses, but I can't create a new resource from within an .apply()
. So I can't create my VpcDhcpOptions from those IP addresses 😞getDirectory
function was a good start. This is passing tests:
const dnsIpAddresses = this.ad.id.apply(async (directoryId) => {
const result = await aws.directoryservice.getDirectory({ directoryId: directoryId }, { async: true });
return result.dnsIpAddresses;
});
(It's not deployed yet, so I might be back later for more help 🙂 )aws.directoryservice.Directory
object would be handy..gentle-diamond-70147
06/29/2020, 6:42 PMdnsIpAddresses
is an output of aws.directoryservice.Directory
- https://www.pulumi.com/docs/reference/pkg/aws/directoryservice/directory/#dnsipaddresses_nodejs.
You should be able to export/output this directly or use this as an input to other resources. So you should not need to use getDirectory
after the fact. Is this not working for you?little-cartoon-10569
07/02/2020, 2:55 AMdomainNameServers
, ntpServers
and netbiosNameServers
input args, they're not there when I break in setMocks
with type = "aws:ec2/vpcDhcpOptions:VpcDhcpOptions". The other args fields are there, like netbiosNodeType
, but the 3 servers fields are gone.