https://pulumi.com logo
Title
m

magnificent-lifeguard-15082

01/18/2022, 10:55 AM
Given I have a known cidr space (/18) and know how that is partitioned across subnets (using awsx logic), how can I use getIPV4Address(value) to create some private fixed addresses in my network? Unsure what
value: number
is here.
l

little-cartoon-10569

01/18/2022, 9:15 PM
That method is a member of the ExistingVpcArgs interface; it's used for looking up an existing VPC. Not what you want.
As a matter of course, don't use the old "docs" links when reading API specs. Use the registry. I don't know why the old docs links work still...
To associate a private IPv4 address with an EC2 instance, use the
privateIp
property for the args constructor parameter of an instance: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/instance/#privateip_nodejs
m

magnificent-lifeguard-15082

01/23/2022, 10:48 PM
Thank you for the note about the old docs, I had not even registered that.