- Newest
- Most votes
- Most comments
I apologize, but it seems there's a misunderstanding in your question. Amazon OpenSearch Serverless does not directly support embedding visualizations as iFrames in the way you're attempting.
The error you're seeing is because you're trying to embed the AWS Console URL, which is not designed to be embedded in iFrames for security reasons.
For OpenSearch Serverless, the recommended approach for embedding visualizations or dashboards in your application is to use the Amazon QuickSight embedding feature. QuickSight can connect to your OpenSearch Serverless collection as a data source and create visualizations that can be embedded in your application.
To embed QuickSight visuals:
- Create your visualizations in QuickSight using your OpenSearch Serverless collection as the data source.
- Use the QuickSight API to generate embedding URLs for your visuals.
- Use these URLs in your application to display the visualizations.
This method allows you to securely embed your visualizations while maintaining access control through IAM.
If you specifically need to use OpenSearch Dashboards, you might need to consider using the non-serverless version of Amazon OpenSearch Service, which provides more configuration options for embedding.
Remember to ensure that your IAM permissions are correctly set up to allow access to both the OpenSearch Serverless collection and QuickSight as needed for your use case.
Sources
RegisteredUserDashboardVisualEmbeddingConfiguration - Amazon QuickSight
Welcome - Amazon OpenSearch Serverless
Just for context, Opensearch Dashboards, Serverless or not, does provide you with the option of generating iFrame links for Visualisations as a native feature, and the link I'm trying to access (the URL to the AWS console) is just the URL that is given by the service. I think it's just the combination of Opensearch Serverless Dashboard + iFrames which has something missing. Probably in a managed Opensearch Service will work fine (I'm just guessing here though, as I haven't tried it myself)
I will take a look at the Quicksight suggestion, I didn't think about it and might be a good alternative.
Thanks!
Relevant content
- Accepted Answerasked 2 years ago
- asked 5 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a month ago