小编Kar*_*ýda的帖子

在 AWS CloudFormation 中提取 VPC 终端节点 IP 地址

我正在创建一个 CloudFormation 模板来创建必要的基础设施来使用 S3 存储桶托管静态网站。该模板包括创建接口类型的 VPC 终端节点,然后创建负载均衡器。为负载均衡器创建目标组时,我需要将 VPC 终端节点的子网中的 IP 地址输入到Targets 属性中。创建 VPC 终端节点后可以检索的唯一属性是NetworkInterfaceIds,但不会返回 IP 地址。我发现这篇文章使用 Lambda 函数从NetworkInterfaceIds传入的属性中提取 IP 地址,但我不想创建 Lambda 函数只是为了在创建基础设施时从 VPC 终端节点获取 IP 地址。

My question is, is it possible to extract the created IP addresses of a VPC endpoint without creating a Lambda function, or is it at least possible to delete this function after creating the whole infrastructure? The Lambda function would logically be unused and therefore I …

amazon-web-services aws-cloudformation aws-cloudformation-custom-resource

5
推荐指数
0
解决办法
837
查看次数