Synthèse automatique
Guide la création et le dépannage de connexions AWS Glue vers des bases JDBC, Redshift, Snowflake et BigQuery, avec collecte des paramètres, découverte des connexions existantes et enregistrement des identifiants.
Points forts
- Table de classification explicite qui associe les propos de l'utilisateur au bon type de connexion (JDBC, SNOWFLAKE, BIGQUERY) et à la référence de configuration correspondante.
- Impose la vérification des dépendances (outils MCP AWS ou CLI, région, identité via sts get-caller-identity) et la découverte des connexions Glue existantes avant toute création.
- Traite la sécurité des accès en orientant vers Secrets Manager ou l'authentification IAM de base de données, et aborde la configuration VPC.
- Délimite clairement son périmètre et renvoie vers les skills voisins pour l'ingestion, les tables, les requêtes ou le catalogue.
Limites
- Le fichier fourni est tronqué à l'étape 4 : la procédure de création, de test et de dépannage n'est pas visible dans son intégralité.
- Suppose une bonne connaissance préalable de l'architecture réseau AWS (VPC, peering, VPN, Direct Connect) et des droits IAM adaptés.
- Ne couvre volontairement ni le déplacement de données ni les sources SaaS (Salesforce, ServiceNow, SAP, MongoDB, Kafka).
À utiliser lorsqu'il faut enregistrer une nouvelle source de données dans AWS Glue, ou diagnostiquer une connexion existante qui échoue ou expire.
À ne pas utiliser pour déplacer des données, créer des tables, exécuter des requêtes ou connecter des applications SaaS.
Analyse de sécurité
PrudenceThe content is a legitimate AWS Glue connection setup guide. It uses powerful tooling (AWS CLI/MCP, Glue, RDS/Redshift discovery, Secrets Manager) for a clearly stated, non-abusive purpose. There are no destructive commands (no rm -rf, no curl|sh, no base64 payloads), no exfiltration of secrets, no attempts to disable safety controls, and it explicitly forbids writing plaintext credentials and requires user confirmation for secret creation and rotation. Because it drives privileged cloud infrastructure changes with no declared tool scoping, 'caution' rather than 'safe' is appropriate. No prompt-injection attempts observed.
- •Instructions direct execution of privileged AWS CLI/MCP operations that mutate account state: `aws glue create-connection`, `aws glue test-connection`, Secret Manager secret creation, and optional smoke-test Glue jobs/crawlers, with no `allowed-tools` declared to scope them.
- •Handles database credentials and connection details (hostnames, accounts, service-account JSON); the skill does state guards (no plaintext creds in chat/logs, confirm before creating secrets, no rotation without confirmation), which mitigates but does not eliminate the risk.
- •Relies on AWS CLI or AWS MCP tools to create and modify cloud resources, including Glue connections and Secrets Manager secrets.
- •Requires broad AWS permissions and may incur cost by running smoke-test Glue jobs or crawlers.
- •No allowed-tools are declared, so an agent could execute AWS CLI commands without an explicit tool allowlist.
- •Requests sensitive connection details and credentials, though it includes safeguards against writing plaintext credentials to chat/logs.
Exemples
Set up a Glue connection called oracle-prod-sales to our Oracle RDS instance so a later job can ingest from it. Walk me through the VPC and secret steps first.My Glue connection to Snowflake keeps timing out on test connection. Check the existing connection config and help me figure out whether it's networking or credentials.Before creating anything, check if we already have a Glue connection to our Redshift warehouse in eu-west-1 and tell me if I can just reuse it.license: Apache-2.0 source: https://github.com/aws/agent-toolkit-for-aws attribution: "Amazon Web Services - agent-toolkit-for-aws (Apache-2.0)" name: connecting-to-data-source description: >- Create and troubleshoot AWS Glue connections to JDBC databases (Oracle, SQL Server, PostgreSQL, MySQL, RDS), Redshift, Snowflake, and BigQuery. Gathers connection hints from user, discovers existing connections and RDS/Redshift candidates, registers credentials in Secrets Manager or IAM DB auth, configures VPC, and tests. Triggers on: connect to database, set up Glue connection, register data source, connect to Snowflake/BigQuery/RDS, connection timeout, test connection, troubleshoot connection. Do NOT use for moving data (use ingesting-into-data-lake), creating tables (use creating-data-lake-table), queries (use querying-data-lake), catalog exploration (use exploring-data-catalog), or SaaS (Salesforce, ServiceNow, SAP, MongoDB, Kafka). version: 1 argument-hint: '[source-type|connection-name|hostname]'
Attribution: Sourced from aws/agent-toolkit-for-aws by Amazon Web Services, licensed Apache-2.0. Modified for this collection.
Connect to Data Source
Register an external data source with AWS Glue so downstream skills (ingesting-into-data-lake) can move data from it. A Glue connection stores the network config, driver, and credential reference for one source. Create once per source, reuse across jobs.
Philosophy
A connection is a named pipe, not a pipeline. This skill produces a tested, reusable Glue connection. It does not move data.
Common Tasks
You MUST execute commands using AWS MCP server tools when connected -- they provide validation, sandboxed execution, and audit logging. Fall back to AWS CLI only if MCP is unavailable. You MUST explain each step before executing.
Workflow
1. Verify Dependencies and Context
- You MUST check whether AWS MCP tools or AWS CLI are available and inform the user if missing
- You MUST confirm target AWS region and verify credentials with
aws sts get-caller-identity
2. Classify the Source
Ask the user which source type they want to connect to, or infer from hints:
| User says... | Source type | Connection type | Reference |
|---|---|---|---|
| "Oracle", "SQL Server", "Postgres", "MySQL", "RDS <engine>" | JDBC database | JDBC | jdbc-setup.md |
| "Redshift", "my cluster", "my data warehouse on AWS" | Redshift | JDBC | jdbc-setup.md (Redshift section) |
| "Snowflake" | Snowflake | SNOWFLAKE | snowflake-setup.md |
| "BigQuery", "Google analytics warehouse" | BigQuery | BIGQUERY | bigquery-setup.md |
If the user names DynamoDB or a local file, stop and tell them: DynamoDB is read directly by Glue without a connection, and local files belong in the ingesting-into-data-lake skill's local-upload workflow.
3. Gather Connection Hints from the User
You MUST ask for hints the user can provide -- do not guess.
For all sources:
- Desired connection name (lowercase, hyphens:
oracle-prod-sales,snowflake-analytics) - Existing Secrets Manager secret, or create one
- Is source reachable from a Glue VPC (same, peered, VPN, Direct Connect)
JDBC: hostname/endpoint, port, database, whether RDS/Aurora/self-managed, IAM DB auth enabled (Aurora/RDS MySQL/Postgres), SSL required.
Snowflake: account identifier, warehouse, role, default database, auth (password, key-pair, OAuth).
BigQuery: GCP project ID, location, whether service account JSON is provisioned.
4. Discover Existing Connections and Candidate Sources
Check what exists before creating.
Existing Glue connections:
aws glue get-connections --filter ConnectionType=<TYPE> --region <REGION>
If a suitable one exists, confirm and skip to Step 7.
Candidate sources in account (JDBC/Redshift only):
- RDS:
aws rds describe-db-instances - Aurora:
aws rds describe-db-clusters - Redshift:
aws redshift describe-clusters
Present candidates to user; let them pick. See discovery.md.
5. Register Credentials
You MUST encourage AWS Secrets Manager over plaintext passwords. You SHOULD prefer IAM database authentication where supported (Aurora/RDS MySQL and PostgreSQL, Redshift). See credential-security.md.
- You MUST confirm with user before creating a new Secrets Manager secret
- You MUST NOT write plaintext credentials into chat or logs
- For IAM DB auth, no secret is needed
6. Create the Glue Connection
Follow the source-specific reference for connection properties:
aws glue create-connection --connection-input '<JSON>' --region <REGION>
Private sources require PhysicalConnectionRequirements (SubnetId, SecurityGroupIdList, AvailabilityZone). See network-setup.md.
7. Test the Connection
You MUST test before handing off. Testing is two-phase: a quick API check, then an engine-level verification.
Phase A: Glue TestConnection (network and credential sanity check)
aws glue test-connection --connection-name <NAME> --region <REGION>
This validates that Glue can reach the source and authenticate. It does NOT prove the connection works end-to-end with the query engine the user plans to use.
Phase B: Engine-level verification
After TestConnection passes, verify the connection works with the user's intended engine by running a minimal query through it:
- Glue ETL (default): Run a smoke-test Glue job that reads one row via the connection. See troubleshooting.md.
- Athena: If the user plans to query via Athena with a federated connector, run a
SELECT 1through the Athena connection to confirm the Lambda-based connector can reach the source. - Glue Crawler: If the user plans to crawl the source, run a test crawl on a single table.
Phase B catches issues that TestConnection misses: driver compatibility at job runtime, catalog configuration, Spark-level serialization, and engine-specific auth flows (e.g., Snowflake SNOWFLAKE type works in ETL but not via JDBC crawlers).
On success in both phases, tell user the connection name is ready for ingesting-into-data-lake. On failure in either phase, Step 8.
8. Troubleshoot (only if test failed)
Diagnose in order: network, credentials, driver. See troubleshooting.md.
Constraints:
- You MUST check VPC routing, security groups, and S3 VPC endpoint before blaming credentials
- You MUST verify Glue role can read the Secrets Manager secret
- You MUST NOT rotate credentials without user confirmation
Argument Routing
- No args: Walk through Steps 1-7 interactively
- Source type keyword (e.g.,
snowflake,oracle): Skip to Step 2 with the type prefilled - Existing connection name: Skip to Step 7 (test) then Step 8 if failing
- Hostname or RDS endpoint: Skip to Step 4 with the candidate prefilled
Gotchas
- Glue's
SNOWFLAKEconnection type is distinct fromJDBCconfigured for Snowflake. You MUST useSNOWFLAKEfor Spark ETL jobs; do not use JDBC. - Connection names are immutable. Choose carefully.
PhysicalConnectionRequirements.AvailabilityZoneMUST match the subnet's AZ or the connection fails at job runtime, not creation time.- IAM database authentication tokens expire in 15 minutes. The Glue job generates a fresh token on each connection; do not cache.
- An S3 VPC gateway endpoint MUST exist in the VPC used by private-source connections. Without it, Glue jobs cannot read their scripts or write results to S3.
Troubleshooting
| Error | Likely cause | Fix |
|---|---|---|
| Connect timed out | VPC routing, SG rule, or NAT gateway missing | See troubleshooting.md |
| Access denied for user / ORA-01017 | Credentials wrong, Secrets Manager access missing, or IAM DB auth misconfigured | See troubleshooting.md |
| No suitable driver found | Custom driver JAR not set or wrong class name | See troubleshooting.md |
| SSL handshake failed | JDBC_ENFORCE_SSL mismatch between Glue and source | See troubleshooting.md |
| UnableToFindVpcEndpoint | S3 VPC endpoint missing | Create S3 gateway endpoint in the connection's VPC |
References
- jdbc-setup.md -- Oracle, SQL Server, PostgreSQL, MySQL, RDS, Redshift
- snowflake-setup.md -- Glue
SNOWFLAKEtype, auth modes - bigquery-setup.md -- Glue
BIGQUERYtype, GCP service accounts - discovery.md -- Finding existing connections and candidate sources
- credential-security.md -- Secrets Manager and IAM DB auth
- network-setup.md -- VPC, subnets, security groups, endpoints
- troubleshooting.md -- Connection errors and diagnostic flow
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/connect-aws-data-sources-to-glue-mvhm5m8g/download' --output '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md.part' && mv '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md.part' '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md' && test -s '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/connecting-to-data-source' && cp -R '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g' '.claude/skills/connecting-to-data-source'Cursor
test -f '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md' && test -s '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/connecting-to-data-source' && cp -R '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g' '.cursor/skills/connecting-to-data-source'Codex
test -f '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md' && test -s '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/connecting-to-data-source' && cp -R '.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g' '.agents/skills/connecting-to-data-source'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g'openskills read 'connect-aws-data-sources-to-glue-mvhm5m8g'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/connect-aws-data-sources-to-glue-mvhm5m8g/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Créer des cartes interactives avec kepler.gl
Data & IA
Création de cartes interactives et export HTML autonome avec le package Python keplergl, à partir de données géospatiales (DataFrame, GeoJSON, CSV).
Optimisation de paramètres par agent
Data & IA
Guide d'optimisation de systèmes configurables avec objectif mesurable, via des essais bornés et une recommandation fondée sur des preuves.
Relance des visiteurs ICP
Data & IA
Identifiez les utilisateurs inscrits correspondant au profil client idéal mais qui n'ont pas activé, et rédigez des messages de relance personnalisés pour les réengager.