🔧 AI Nachrichten How to Evaluate Live & Voice Agents in ADK(14.09.2026 um 14:46 Uhr)
🔧 AI Nachrichten Autonomous LLM post-training with Tunix on TPUs(14.09.2026 um 14:46 Uhr)
🔧 ProgrammierungYour frontend observability has an accessibility blind spot(10.09.2026 um 11:00 Uhr)
🎥 PodcastsLive episode: how AI is reshaping our minds – podcast(13.09.2026 um 06:00 Uhr)
🎥 PodcastsAI isn’t going to end humanity ... right? – podcast(14.09.2026 um 04:00 Uhr)
🔧 AI Nachrichten Labor unions must unite against AI datacenters | Tyler Turner(14.09.2026 um 14:00 Uhr)
⚠️ Malware / Trojaner / VirenFrom Hacks to Bioweapons, Claude Misuse Is Now Everywhere(12.09.2026 um 12:30 Uhr)
🔧 AI Nachrichten The A.I. Slowdown Debate Goes Global(14.09.2026 um 14:01 Uhr)
🔧 AI Nachrichten How to Evaluate Live & Voice Agents in ADK(14.09.2026 um 14:46 Uhr)
🔧 AI Nachrichten Autonomous LLM post-training with Tunix on TPUs(14.09.2026 um 14:46 Uhr)
🔧 ProgrammierungYour frontend observability has an accessibility blind spot(10.09.2026 um 11:00 Uhr)
🎥 PodcastsLive episode: how AI is reshaping our minds – podcast(13.09.2026 um 06:00 Uhr)
🎥 PodcastsAI isn’t going to end humanity ... right? – podcast(14.09.2026 um 04:00 Uhr)
🔧 AI Nachrichten Labor unions must unite against AI datacenters | Tyler Turner(14.09.2026 um 14:00 Uhr)
⚠️ Malware / Trojaner / VirenFrom Hacks to Bioweapons, Claude Misuse Is Now Everywhere(12.09.2026 um 12:30 Uhr)
🔧 AI Nachrichten The A.I. Slowdown Debate Goes Global(14.09.2026 um 14:01 Uhr)

🔧 Programmierung 🕛 vor 1 Jahr 25 Min Lesezeit
0

Working with Amazon OpenSearch Service Direct Queries with Amazon S3: The First-Ever Detailed Guide

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Efficiently querying vast amounts of data in real-time is essential for gaining actionable insights and making informed decisions. Amazon OpenSearch Service combined with Amazon S3 provides a powerful solution for organizations looking to leverage their data effectively. This comprehensive guide is the first-ever detailed walkthrough that covers every step of integrating these powerful AWS services, ensuring you can implement and optimize direct queries with ease.






Table of Contents




  1. High-Level Architecture

  2. Prerequisites


  3. Step-by-Step Implementation


    • 1. Creating an Amazon S3 Bucket

    • 2. Setting Up AWS Glue Data Catalog

    • 3. Configuring IAM Roles and Policies

    • 4. Creating an Amazon OpenSearch Service Domain

    • 5. Creating Spark Tables Using Query Workbench

    • 6. Implementing Accelerations



  4. Best Practices

  5. Testing and Validation

  6. Troubleshooting

  7. Conclusion

  8. References

  9. Glossary

  10. Appendices

  11. Custom Open Graph (OG) Image









High-Level Architecture







Step 2: Create a New Bucket




  1. Click on "Create bucket".


  2. Configure Bucket Settings:



    • Bucket name: opensearch-s3-poc-json-bucket (must be unique across all AWS accounts).


    • Region: Select the same AWS Region as your OpenSearch domain (e.g., us-east-1).




  3. Set Object Ownership:



    • Recommended: Set to Bucket owner preferred.




  4. Block Public Access:



    • Enable: Ensure all options are checked to block public access.




  5. Additional Settings:


    • Configure Versioning, Tags, Default encryption as per requirements.




  6. Review and Create:


    • Click Create bucket after reviewing all settings.





Step 3: Upload Sample Data to S3




  1. Open the newly created bucket opensearch-s3-poc-json-bucket.


  2. Create a Folder (Optional):


    • Example: transactions/ for better organization.




  3. Upload Files:


    • Click Upload.


    • Add Files: Select and upload your transactions.json.

    • Click Upload.





Best Practice: Organize data using prefixes (folders) like transactions/ and ensure data consistency.







2. Setting Up AWS Glue Data Catalog



Step 1: Navigate to the AWS Glue Console





  • URL:



Step 2: Create an IAM Policy




  1. In the IAM console, click on "Policies" in the left navigation pane.

  2. Click "Create policy".

  3. Select the JSON tab.


  4. Paste the following policy, replacing <account-id> and <opensearch-domain-name> with your actual AWS Account ID and desired OpenSearch domain name.



    CODE
    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Sid": "OpenSearchDomainPermissions",
    "Effect": "Allow",
    "Action": "es:ESHttp*",
    "Resource": "arn:aws:es:us-east-1:<account-id>:domain/<opensearch-domain-name>/*"
    },
    {
    "Sid": "S3ReadAccess",
    "Effect": "Allow",
    "Action": [
    "s3:GetObject",
    "s3:GetObjectVersion",
    "s3:ListBucket"
    ],
    "Resource": [
    "arn:aws:s3:::opensearch-s3-poc-json-bucket",
    "arn:aws:s3:::opensearch-s3-poc-json-bucket/*"
    ]
    },
    {
    "Sid": "GluePermissions",
    "Effect": "Allow",
    "Action": [
    "glue:GetDatabase",
    "glue:GetTable",
    "glue:GetTables",
    "glue:GetPartition",
    "glue:GetPartitions"
    ],
    "Resource": "*"
    },
    {
    "Sid": "S3CheckpointAccess",
    "Effect": "Allow",
    "Action": [
    "s3:*"
    ],
    "Resource": [
    "arn:aws:s3:::opensearch-s3-poc-json-bucket/checkpoint/transactions/",
    "arn:aws:s3:::opensearch-s3-poc-json-bucket/checkpoint/transactions/*"
    ]
    }
    ]
    }







  5. Click "Next: Tags" (optional).



  6. Click "Next: Review".



  7. Name: OpenSearchS3AccessPolicy.



  8. Description: Policy granting OpenSearch access to S3 and Glue.



  9. Click "Create policy".





Step 3: Create an IAM Role




  1. In the IAM console, click on "Roles" in the left navigation pane.

  2. Click "Create role".


  3. Trusted Entity: Select "Custom trust policy".

  4. Click "Switch to trusted entity".


  5. Paste the following trust policy:


    CODE
    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Effect": "Allow",
    "Principal": {
    "Service": [
    "opensearchservice.amazonaws.com",
    "directquery.opensearchservice.amazonaws.com",
    "glue.amazonaws.com"
    ]
    },
    "Action": "sts:AssumeRole"
    }
    ]
    }



  6. Click "Next: Permissions".


  7. Search for OpenSearchS3AccessPolicy.


  8. Select the policy and click "Next: Tags".


  9. Click "Next: Review".


  10. Role name: OpenSearchS3AccessRole.


  11. Description: Role for OpenSearch to access S3 and Glue.


  12. Click "Create role".




Best Practice: Use clear and descriptive names for roles and policies for easier management.









4. Creating an Amazon OpenSearch Service Domain



Step 1: Navigate to the Amazon OpenSearch Service Console





  • URL:






    Conclusion



    Integrating Amazon OpenSearch Service with Amazon S3 for direct queries offers a robust solution for high-performance data analytics and real-time search capabilities. This integration leverages the scalability and durability of Amazon S3 for data storage, the schema management prowess of AWS Glue, and the advanced search and analytics features of OpenSearch Service.



    Key Takeaways:





    • Streamlined Data Access: Direct queries enable efficient data retrieval from S3 without the need for data ingestion into OpenSearch indices.


    • Enhanced Performance: Implementing accelerations such as Skipping Indexes, Covering Indexes, and Materialized Views significantly improves query performance and reduces latency.


    • Scalability and Flexibility: The architecture supports scalability, allowing you to handle large volumes of data and complex queries seamlessly.


    • Security and Compliance: Adhering to best practices in IAM configurations and data encryption ensures your data remains secure and compliant with industry standards.


    • Cost Efficiency: Optimizing resource allocation and implementing data lifecycle policies help manage costs effectively without sacrificing performance.



    By following this guide and adhering to the outlined best practices, you can establish an efficient, scalable, and secure data querying environment using Amazon OpenSearch Service and Amazon S3. This setup empowers your organization to perform real-time analytics, derive actionable insights, and drive informed decision-making with confidence.









    References





    • Amazon S3 Documentation:


    • Amazon OpenSearch Service Documentation:


    • OpenSearch Query Workbench:


    • Monitoring and Observability:


    • Apache Spark SQL Documentation: , sharing it with your network, or leaving a comment below. Your feedback helps improve the content and supports the community!

      Vollständiger Original-Bericht
      Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
      ↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
China fires back at U.S. AI safety warnings, calling them fearmongering to lock in American advantage
1 Quelle
Your frontend observability has an accessibility blind spot
1 Quelle
Live episode: how AI is reshaping our minds – podcast
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Working with Amazon OpenSearch Service Direct Queries with Amazon S3: The First-Ever Detailed Guide

Thematisch verwandte Begriffe: Working, with, Amazon, OpenSearch · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...