By using AWS re:Post, you agree to the Terms of Use
/Infrastructure as Code/

Infrastructure as Code

AWS CloudFormation gives you an easy way to model a collection of related AWS and third-party resources, provision them quickly and consistently, and manage them throughout their lifecycles by treating infrastructure as code. A CloudFormation template describes your desired resources and their dependencies so you can launch and configure them together as a stack.

Recent questions

see all

How to connect a Load balancer and an Interface VPC Endpoint together using CDK?

Acronym legend: * ALB - ApplicationLoadBalancer * ATG - ApplicationTargetGroup aka Target Group * VPC - Virtual Private Cloud **Our situation:** Using the AWS Console manually, it was shown that using Route 53 to an ALB (Application Load Balancer) to a private Interface VPC Endpoint to a private REST API-Gateway to a private Lambda works well. (ALB and a gateway Custom-domain-name exist due to https and the needed Certificate) The ALB needs a Target Group which targets the IP addresses of the Interface VPC Endpoint. (We tried using InstanceIdTarget with the endpoint's vpcEndpointId, but that failed with the error *Instance ID 'vpce-WITHWHATEVERHERE' is not valid* ) Using CDK, we created the following (among other things) using the aws_elasticloadbalancingv2 module: * ApplicationLoadBalancer (ALB) * ApplicationTargetGroup (ATG) aka Target Group We added a listener to the ALB. We added the Target Group to the listener. **It’s not clear how to get the IP addresses from the VPC endpoint. We want to add the IP addresses to the ATG aka Target Group using the targets property.** How to get the IP addresses of the Interface VPC Endpoint via CDK? A sample of resources we've used: * * * * * * - The approach we want in general. We're using the latest available as of this writing (AWS CDK 2.5.0)
asked 4 months ago

Popular users

see all