Given I have a known cidr space (/18) and know how...
# aws
m
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
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
Thank you for the note about the old docs, I had not even registered that.