aws-samples / aws-service-catalog-terraform-reference-architecture

Apply Terraform configurations using CloudFormation through a proxy lambda
Apache License 2.0
134 stars 70 forks source link

"Lamp-TF" named Sample service catalog product is failing to launch #3

Closed razhamma closed 5 years ago

razhamma commented 5 years ago

Issue Description: Launching "Lamp-TF" named sample product fails to create both ways: 1- Either in a single Hub/Spoke Account 2- Or in a different Spoke than Hub Account The respective CloudFormation stack to "Lamp-TF" product fails with below error:

Custom::TerraformStack  MyTerraformStack  "Failed  to create resource. Encountered error during fulfillment script  execution - `terraform apply` finished with exit code 1. Terraform wrapper script output at:  http://terraformarchitecture-singleaccount-t-outputstore-1wgbbba0qqs53.s3-website.us-east-1.amazonaws.com/redirects/1gxS4E63Nv"

Moreover, no wrapper script output exists at the specified location.

I believe that issue is coming due to something wrong in TerraformCustomResourceHandler module as I was able to see the respective Lambda function being invoked in order to launch this product but failing due to something wrong in the code(maybe).

chapmancl commented 5 years ago

TF output and any errors will be in the tffullfillmentserver-outputstore-* bucket under the account/region/product path.