Open gbroques opened 4 years ago
Looks like step 4 under Marketplace SaaS Setup Instructions became out-of-date in commit 406f84d.
You now don't have to update "marketplaceSubscriptionTopic" in package.json
.
Looks like the following code in the static-asset-uploader
lambda automatically pulls the AWS Marketplace Product Code as some MarketplaceSuffix
property on the Lambda event
object?
let suffix = event.ResourceProperties.MarketplaceSuffix
if(suffix !== 'DevPortalMarketplaceSubscriptionTopic') {
configObject.marketplaceSubscriptionTopic = `arn:aws:sns:us-east-1:287250355862:aws-mp-subscription-notification-${suffix}`
}
EDIT: Upon further digging, it appears you're now supposed to pass it as a parameter override to the cloud formation template using the sam deploy
command like such:
sam deploy \
--template-file ./cloudformation/packaged.yaml \
--stack-name "dev-portal" \
--s3-bucket dev-portal-bucket \
--capabilities CAPABILITY_NAMED_IAM \
--parameter-overrides
MarketplaceSubscriptionTopicProductCode="YourMarketplaceProductCode"
I found the no longer existing npm run subscribe-listener
command that's referenced in step 6 that was added to package.json
in commit f20871390e.
"subscribe-listener": "aws sns subscribe --topic-arn $npm_package_config_marketplaceSubscriptionTopic --protocol lambda --notification-endpoint arn:aws:lambda:$npm_package_config_primaryAwsRegion:$npm_package_config_accountId:function:$npm_package_config_listenerLambdaFunctionName --region us-east-1",
It's unclear whether or not this, or a similar command still needs to be ran to complete integration with the AWS Marketplace.
The alleged npm run update-stack
mentioned in step 5 never seemed to exist in the first place as that README instruction was added in commit f20871390e, but the update-stack
command wasn't added to the scripts
in package.json
in the same commit.
Would running a sam package
and sam deploy
command be equivalent to "updating the stack"?
I performed step 3 by using the AWS Console GUI:
+1 please update / streamline aws market place integration docs
I'm on step 2 under Marketplace Saas Setup Instructions in the README titled "Create a SaaS Product in AWS Marketplace".
I'm concerned because this section says "NOTE: These instructions are now out of date!"
I received an email about integrating my SaaS Subscription listing with the AWS Marketplace API.
There are three integration tasks to complete:
How do I complete each of these integration tasks using the AWS API Gateway Developer Portal framework?
Do steps 3 - 6 under Marketplace SaaS Setup Instructions in the README complete these integration tasks?
Help and guidance on how to integrate my Developer Portal and product listing with AWS Marketplace would be greatly appreciated!