lambda function retrieve the output from terraform state file


Create a Lambda function in the programming language of your choice that allows to retrieve an

arbitrary terraform state file from S3 and return terraform outputs from the state file, such as the URL

of an AWS application load balancer in the above example. The Lambda function should be managed

using Terraform IaC. By default all outputs from the terraform state should be returned and optionally

the function should accept an input parameter to return a specific output from the terraform state


One challenge that arises here is that the two tools do not have access to dynamically generated

resources from the other tool. Let's assume that a base infrastructure has been created with

Terraform and an AWS application load balancer has been provisioned here that stores a URL as an

output parameter in Terraform State. This url is required in Cloud Formation. CloudFormation Custom

Resources can be used to trigger Lambda functions and use the return values as inputs for other

cloud formation resources.

Taidot: Terraform, AWS Lambda, Amazon S3

Tietoa asiakkaasta:
( 0 arvostelua ) Verona, Italy

Projektin tunnus: #34023432

Myönnetty käyttäjälle:


Hi, Hope you are doing well!!! I would be happy to work on the task stated by you. I have experience in working with AWS for more than 4 years and have successfully designed, deployed highly available solutions. I have Lisää

₹7000 INR 7 päivässä
(0 Arvostelua)