question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No launch paths found for resource

See original GitHub issue

When attempting to launch a product using the CloudFormationProvisionedProduct, I keep getting an error message saying that “no launch paths” exist for the given resource. Both the parent and the product it depends on have launch constraints on them, and when I call aws servicecatalog list-launch-paths --product-id <product_id> for both, they return a launch path. Is there an explicit way to create/update a product launch path other than associating principals with portfolios? In the end, I am trying to have a product explicitly depend on another one, and to automatically launch it if it hasn’t already been deployed.

Reproduction Steps

Include an already existing product in a separate products CDK code like this:

new SC.CfnCloudFormationProvisionedProduct(this, 'provisioned-product', {
     productId: 'prod-abcdef',
     provisioningArtifactId: 'pa-abcdef',
});

This was able to locate the product successfully, but it fails during product launch with the error message below.

Error Log

StatusReason : Unable to launch provisioned product because: No launch paths found for resource

Environment

  • **CLI Version 😗*1.43
  • **Framework Version:**Typescript
  • **Node.js Version:**v14.4.0

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
paulmarsicloudcommented, Feb 28, 2022

I recently ran into this error and even though I could run describe-product-as-admin CLI commands, the provision-product command returned an error:

An error occurred (ResourceNotFoundException) when calling the ProvisionProduct operation: No launch paths found for resource

The solution: add the IAM User/Group/Role to the Portfolio 🤦‍♂️ https://docs.aws.amazon.com/servicecatalog/latest/adminguide/catalogs_portfolios_users.html

The IAM user I was using had Administrator access and it still needed to be added as a user to the Service Catalog Portfolio for the product

2reactions
YakDrivercommented, May 26, 2021

The error message Unable to launch provisioned product because: No launch paths found for resource isn’t super helpful. It can mean any of the following:

  1. The product doesn’t exist
  2. The provisioning artifact doesn’t exist
  3. The product exists but it’s in a failed state
  4. You don’t have access to the product
  5. You don’t have access to the product’s portfolio
  6. The product isn’t associated with a portfolio
  7. The launch path does not exist

Since the error message is not helpful, it doesn’t tell you which of these are to blame.

To see how unhelpful the error message is, try this for fun:

% aws servicecatalog provision-product --provisioned-product-name no --product-id nope --provisioning-artifact-id nopity-nope

An error occurred (ResourceNotFoundException) when calling the ProvisionProduct operation: No launch paths found for resource: nope

Some pointers to getting it to work:

  • Associate the product to a portfolio.
  • Associate a principal that is or includes you to the portfolio.
  • Make sure the product is properly created by not using DisableTemplateValidation. When you create the product, you’ll get an error if the template has an error.
  • Try describing the provisioning artifact to make sure it exists.
  • Try describing the product. If you can describe the product, it exists, and you have access. You should see a launch path as part of the product description. If you can describe the product but it doesn’t have a launch path, I suspect the template is bad.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - AWS Control Tower
No Launch Paths Found Error · You may be logged in as root. · Your IAM Identity Center user has not been added...
Read more >
How to add or get a launch path to a product in AWS Service ...
The error message Unable to launch provisioned product because: No launch paths found for resource isn't super helpful.
Read more >
list-launch-paths — AWS CLI 2.9.6 Command Reference
list-launch-paths is a paginated operation. Multiple API calls may be issued in order to retrieve the entire data set of results. You can...
Read more >
Enrolling existing AWS accounts in new OU
Hi , I have created new AWS account and set up Control tower, a landing zone, account factory and a new OU, with...
Read more >
Unable to retrieve launch paths for product: access denied
Amazon Service Catalog Item cannot load variables- Unable to retrieve launch paths for product: access denied · 1.Go to the affected user record...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found