Querying AWS Redshift
AWSOfficialPublished by AWS
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a comprehensive interface for managing and querying Amazon Redshift system table (SYS_*) logs exported to S3 Tables. By publishing these logs as Apache Iceberg tables, users can bypass the limited retention windows of in-cluster views and perform historical analysis without impacting cluster performance. The skill supports both Provisioned clusters and Serverless namespaces, offering guidance on enabling logging, verifying status, and executing queries via Amazon Athena or directly within Redshift using auto-mounted catalogs.
What it does
- Enables S3 Tables log publishing for Redshift Provisioned clusters and Serverless namespaces.
- Verifies the current logging status and identifies the correct S3 Tables namespace.
- Provides SQL patterns for querying historical system logs like query history and connection logs.
- Configures cross-database querying for Redshift and Athena integration.
- Offers guidance on security, including KMS key management and least-privilege IAM policies.
- Troubleshoots common integration issues such as catalog visibility and permission errors.
When to use it
- When you need to retain Redshift system logs beyond the standard in-cluster retention window.
- When you want to analyze high-volume system data without adding load to your production cluster.
- When building monitoring dashboards or auditing tools for Redshift activity.
- When you need to join Redshift system logs with other data stored in your data lake.
- When performing ad-hoc analysis on historical query performance or authentication failures.
Advantages
- Decouples log analysis from cluster performance, ensuring no impact on production workloads.
- Provides long-term data retention beyond the standard in-cluster SYS_ view limits.
- Enables standard SQL querying across multiple clusters using Iceberg-compatible engines.
- Supports both Provisioned and Serverless Redshift environments with consistent tooling.
- Facilitates advanced analytics and cross-table joins using familiar SQL syntax.
Usage examples
- “Enable S3 Tables logging for my Redshift cluster.”
- The agent will guide you through the enable-logging command, ensuring you specify the correct log-exports and customer-managed KMS key for secure storage.
- “How do I check if my Redshift namespace is publishing logs?”
- The agent will run the appropriate status command for your compute type and interpret the response to confirm if S3 Tables publishing is active.
- “Show me the top 10 longest-running queries from the last week.”
- The agent provides a SQL query template tailored for Athena or Redshift, using the correct namespace and microsecond-to-second conversion.
- “Troubleshoot why my Athena query returns no results for Redshift logs.”
- The agent will help you verify if ingestion is still in flight, check the catalog registration, and confirm your IAM permissions.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/aws/querying-aws-redshift/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip querying-aws-redshift.zip -d .agents/skills
Documentation by AWS
Query AWS Redshift System Tables
Overview
Works best with the AWS MCP server for sandboxed execution and audit logging. All commands below use the AWS CLI and work in any environment with configured AWS credentials. Use IAM roles or temporary credentials; avoid long-lived access keys.
Redshift can publish system tables — the SYS_* monitoring data such as sys_query_history, sys_query_detail, and sys_connection_log — to S3 Tables as continuously-updated Apache Iceberg tables.
Terminology used throughout: system table refers to a SYS_* dataset generally, and each one maps 1:1 to a published Iceberg table. Where this skill says SYS_ view, it means specifically the live in-cluster object you query on the cluster itself — that is a view, and it is a different thing from the published S3 Tables copy. This applies to both Provisioned clusters and Serverless namespaces. It is an opt-in extension of the existing logging APIs. Published tables are read-only, stored in the AWS-managed aws-redshift table bucket, and queryable via any Iceberg-compatible engine including Amazon Athena and Amazon Redshift itself.
Querying the S3 Tables copy is preferred over the live in-cluster SYS_ views when analyzing historical or high-volume system-table data because:
The in-cluster
SYS_views have a limited retention window; S3 Tables retains history well beyond it.Querying S3 Tables adds no load to the running Redshift cluster.
The logs are Iceberg tables, so they can be queried at scale from any Iceberg-compatible engine and joined with other lake data.
Decision Tree
| User intent | Use this skill? | Alternative |
|---|---|---|
| Turn on S3 Tables log publishing for a cluster or namespace | Yes | — |
| Confirm a cluster/namespace is publishing / find its S3 Tables namespace | Yes | — |
| Querying non-realtime data from Redshift system tables | Yes | — |
| Build daily/weekly/monthly dashboard for Redshift monitoring and auditing | Yes | — |
| Selectively stop S3 Tables publishing | Yes | — |
| Query published system tables from Redshift (cross-database) | Yes | — |
| Query published system tables from Athena | Yes | — |
Inspect the current, real-time SYS_ state on a live cluster | No | Query the SYS_ view on the cluster directly |
| Query data inside customer tables | No | Direct Redshift SQL on the cluster |
Supported Data Sources
| Compute type | Enable / disable API | Status API | Granularity options |
|---|---|---|---|
| Redshift Provisioned cluster | redshift enable-logging / redshift disable-logging | redshift describe-logging-status | cluster (default), account |
| Redshift Serverless namespace | redshift-serverless update-namespace with --s3-table-action Enable/Disable | redshift-serverless get-namespace | namespace (default), account |
Both compute types publish into the same AWS-managed aws-redshift table bucket and are queried identically once published. They differ only in the enable/disable API surface and in the casing of the status response — see the flag and field tables in Common Tasks.
Not covered by this skill: Redshift audit logs delivered to S3 or CloudWatch (useractivitylog, userlog, connectionlog), which use the separate --log-exports mechanism on Serverless and are not SYS_* system tables.
Common Tasks
1. Check If Configured
Before querying, confirm the cluster or namespace is publishing to S3 Tables.
# Provisioned
aws redshift describe-logging-status --region <REGION> --cluster-identifier <CLUSTER_ID>
# Serverless
aws redshift-serverless get-namespace --region <REGION> --namespace-name <NAMESPACE_NAME>Interpret the response. The two compute types return the same information under different field names and casing — Provisioned uses PascalCase under S3Tables, Serverless uses camelCase under namespace.s3TablePublishStatus:
| Meaning | Provisioned (describe-logging-status) | Serverless (get-namespace) |
|---|---|---|
| Not enabled | LoggingEnabled: false or no S3Tables block | no s3TablePublishStatus block |
| Destination includes S3 Tables | LogDestinationType contains s3table | logDestinationType contains s3table |
List of published SYS_* tables | S3Tables.S3Tables | namespace.s3TablePublishStatus.s3Tables |
| The exact S3 Tables namespace (required for querying) | S3Tables.S3TableNamespace | namespace.s3TablePublishStatus.s3TableNamespace |
| Granularity | S3Tables.S3TableGranularity (cluster/account) | namespace.s3TablePublishStatus.s3TableGranularity (namespace/account) |
| Per-table last ingest time | S3Tables.LastIngestionTimes | namespace.s3TablePublishStatus.lastIngestionTimes |
| All available system tables published | S3Tables.EnabledAll | namespace.s3TablePublishStatus.enabledAll |
Notes:
LogDestinationTypeis a comma-joined list when more than one destination is active — e.g."cloudwatch,s3table". Test with a substring/contains check, not equality againsts3table.An empty
LastIngestionTimes/lastIngestionTimesmap, or a table listed as published but absent from the map, means data for that table may still be in flight. Compare successive values to confirm new data is landing.On Serverless, do not read the top-level
logExportsfield for this feature — that field carries the CloudWatch/S3 audit logs (useractivitylog,userlog,connectionlog) and is unrelated toSYS_*S3 Tables publishing.
2. Enable (if not configured)
# Provisioned
aws redshift enable-logging --region <REGION> --cluster-identifier <CLUSTER_ID> --log-destination-type s3table --log-exports <SYS_TABLE>... --s3-table-granularity <cluster|account> --s3-table-kms-key-id <KMS_KEY_ARN>
# Serverless
aws redshift-serverless update-namespace --region <REGION> --namespace-name <NAMESPACE_NAME> --log-destination-type s3table --s3-table-names <SYS_TABLE>... --s3-table-action Enable --s3-table-granularity <namespace|account> --s3-table-kms-key-id <KMS_KEY_ARN>--s3-table-kms-key-id is part of both commands deliberately, not an optional add-on. Omitting it does not fail — the tables fall back to an AWS-owned key you cannot audit, restrict by policy, or revoke. Because SYS_* tables carry query_text, user_name, and remote_host, treat the customer-managed key as the default and drop the flag only for throwaway environments.
Enable from AWS console Amazon Redshift Console > Clusters > select your cluster > Tabs > Integrations / System table integration
The two compute types take different flags for the same feature. Do not carry Provisioned flag names over to Serverless:
| Purpose | Provisioned (enable-logging) | Serverless (update-namespace) |
|---|---|---|
| Which system tables to publish | --log-exports | --s3-table-names |
| Enable vs disable | separate enable-logging / disable-logging operations | --s3-table-action Enable | Disable |
| Granularity | --s3-table-granularity cluster | account | --s3-table-granularity namespace | account |
| Customer-managed KMS key | --s3-table-kms-key-id | --s3-table-kms-key-id |
| Validate without applying | --dry-run | --dry-run |
Notes:
Granularity: Provisioned supports
cluster(default) oraccount; Serverless supportsnamespace(default) oraccount.cluster/namespacegranularity → one S3 table per cluster/namespace;account→ one shared table for all clusters/namespaces per account per region.Use
allto publish all availableSYS_*tables —--log-exports allon Provisioned,--s3-table-names allon Serverless.Encryption at rest is strongly recommended for production. Without
--s3-table-kms-key-idthe published tables are encrypted with an AWS-owned key, which you cannot audit, restrict by policy, or revoke.SYS_*tables carryquery_text,user_name, andremote_host(see Security Considerations), so pass a customer-managed key. Grant key access using the complete key policy in${SKILL_DIR}/references/security.mdrather than an abbreviated action list — it needs two service principals (systemtables.redshift.amazonaws.comfor publishing andmaintenance.s3tables.amazonaws.comfor table maintenance/compaction). Provisioning only the publishing principal lets writes succeed while compaction silently fails.Both operations accept
--dry-runto validate the request without changing anything. Provisioned returns aDryRunOperationerror on success ("Request would have succeeded, but DryRun flag is set"); Serverless returns an empty body and exit code 0. Note that the Serverless dry-run validates request shape only, not parameter values, so a successful dry-run there does not guarantee the values are accepted.
Disable selectively:
# Provisioned
aws redshift disable-logging --region <REGION> --cluster-identifier <CLUSTER_ID> --log-destination-type s3table --log-exports <SYS_TABLE>...
# Serverless
aws redshift-serverless update-namespace --region <REGION> --namespace-name <NAMESPACE_NAME> --log-destination-type s3table --s3-table-names <SYS_TABLE>... --s3-table-action Disable3. Verify Permissions
Full setup commands for both paths: ${SKILL_DIR}/references/permissions-setup.md. Load it before creating roles or registering resources.
Athena path — needs the s3tablescatalog/aws-redshift catalog registered in Glue, a workgroup with an output location, and S3 Tables read permissions. Confirm the catalog is queryable:
aws glue get-databases --region <REGION> \
--catalog-id "<ACCOUNT>:s3tablescatalog/aws-redshift"Namespaces returned → registered and queryable. EntityNotFoundException / CATALOG_NOT_FOUND → the S3 Tables integration is not enabled (S3 console > Table buckets > Enable integration). Encrypt the workgroup output location — Athena writes full result sets, including query_text and user_name, to S3.
Redshift auto-mount path — needs a Provisioned RA3 cluster and a four-step setup: create the query_s3_tables role (trust policy must name both redshift.amazonaws.com and lakeformation.amazonaws.com, the latter with all four of sts:AssumeRole, sts:SetContext, sts:SetSourceIdentity, sts:TagSession), attach it to the cluster, register the table bucket with Lake Formation, and add the Redshift service-linked roles to ReadOnlyAdmins. Constraints that cause most failures:
Condition both trust statements on
aws:SourceAccount— a bare service principal is a confused-deputy risk.Do not attach
AWSLakeFormationDataAdminto the cluster's query role. It is needed only by the principal performing setup, and only during setup. The cluster's role needs read access alone.Auto-mount is a poll, not a callback — the catalog can take up to 300 seconds to appear in
pg_database. A cluster reboot forces immediate discovery.
4. Identify the Target Table
Namespace — resolve it from the API, do not construct it:
Read
S3Tables.S3TableNamespacefromdescribe-logging-status(Provisioned) ors3TablePublishStatus.s3TableNamespacefromget-namespace(Serverless) and use it verbatim.Optional sanity check only: the API value typically follows
<namespace_arn_id>_sysforcluster/namespacegranularity and<account>_sysforaccountgranularity. Use this only to verify the value looks right — never to generate the namespace when the API response is unavailable.
Table — each publishable system table maps 1:1 to a table in the aws-redshift table bucket. Do not work from a memorized list — resolve it at runtime, in this order:
The published set for this cluster/namespace —
S3Tables.S3Tables(Provisioned) ors3TablePublishStatus.s3Tables(Serverless) from the status call above, e.g.sys_query_history. This is the only authoritative answer to "what can I query right now".The set this API accepts —
aws redshift enable-logging help(accepted--log-exportsvalues) oraws redshift-serverless update-namespace help(accepted--s3-table-namesvalues).What each table contains — the public Redshift SYS monitoring views reference, which documents every
SYS_*view and its columns. AWS adds views over time, so treat the docs as the current list rather than hardcoding one.
Column names and types come from the same public reference, or from the live table:
aws glue get-table --region <REGION> \
--catalog-id "<ACCOUNT>:s3tablescatalog/aws-redshift" \
--database-name "<NAMESPACE>" --name "<SYS_TABLE>"Two caveats when reading the public docs against a published table: enum-valued columns (query_type, status, event) gain values over time, so confirm with SELECT DISTINCT rather than filtering on an assumed set; and the published Iceberg table prepends warehouse-identity columns (warehouse_name, warehouse_namespace_arn, and peers) that the in-cluster SYS_ view does not have — they are how you tell apart multiple clusters publishing at account granularity.
5. Query
Query from Athena
Query syntax:
"s3tablescatalog/aws-redshift"."<NAMESPACE>"."<SYS_TABLE>"Query from Redshift (Auto-Mounted Catalog)
Once the auto-mounted catalog is set up (see ${SKILL_DIR}/references/permissions-setup.md), query using cross-database notation:
"aws-redshift@s3tablescatalog"."<NAMESPACE>".<SYS_TABLE>Query from Redshift (External Schema)
Alternatively, create an external schema pointing to the S3 Tables catalog:
CREATE EXTERNAL SCHEMA <schema_name>
FROM DATA CATALOG
DATABASE '<NAMESPACE>'
CATALOG_ID '<ACCOUNT>:s3tablescatalog/aws-redshift'
IAM_ROLE 'arn:aws:iam::<ACCOUNT>:role/query_s3_tables'
REGION '<REGION>';
SELECT * FROM <schema_name>.<SYS_TABLE> LIMIT 10;Constraints
You MUST run
describe-logging-statusorget-namespaceto get the namespace before writing any SQL query — never construct it manuallyFor Athena queries, you MUST confirm workgroup and output location before executing
Timing columns are in microseconds. Divide by
1000000.0for secondsTables are read-only — no
INSERT/UPDATE/DELETEAlways add a
LIMITwhen the user doesn't specify one; filter onstart_time/record_timewhere possible
Examples
Worked SQL for the common asks — longest-running queries, error analysis, connection auditing, queue-time trends, cross-table joins — is in ${SKILL_DIR}/references/example-queries.md. Two rules that apply to every one of them:
Timing columns are microseconds. Divide by 1,000,000 for seconds. Reporting
elapsed_timeas-is overstates durations by 10^6.Filter on the Iceberg partition columns (
year/month/dayor the table's own partitioning) in addition to any timestamp predicate, or the engine scans the full history.
Routing: Athena vs Redshift vs Direct SYS_ Access
| Scenario | Use |
|---|---|
| Historical/high-volume log analysis, no cluster load | Athena or Redshift on S3 Tables |
| Already connected to a Redshift cluster, want to query S3 Tables logs | Redshift cross-database or external schema |
| Join system table logs with other lake data | Athena or Redshift Spectrum |
| Real-time current state of the cluster | Direct SYS_ view on the cluster |
| Quick ad-hoc query without Redshift cluster access | Athena |
Key Behaviors
No backfill — only events recorded after enabling are delivered to S3 Tables
Namespace from the API — always read the namespace from
describe-logging-status(S3Tables.S3TableNamespace) orget-namespace(s3TablePublishStatus.s3TableNamespace); never construct it manuallyMicrosecond timing — all duration columns are in microseconds; divide by 1000000.0 for seconds
Read-only — published tables cannot be written to
Both Provisioned and Serverless — same table bucket (
aws-redshift), different enable APIsAny Iceberg-compatible engine — query from Athena, Redshift, or any engine that reads Iceberg
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
aws-redshift bucket not found | S3 Tables integration not enabled or logging not started | Run enable-logging (Provisioned) or update-namespace (Serverless) with --log-destination-type s3table |
CATALOG_NOT_FOUND in Athena | S3 Tables not registered in Glue | Enable integration: S3 console > Table buckets > Enable integration |
| Athena table empty after enabling | Ingestion still in flight | Check LastIngestionTimes (Provisioned) / lastIngestionTimes (Serverless); wait and re-query |
SYS_* table missing from the namespace | System table not included when enabling | Re-run enable with that table included, or use all — --log-exports (Provisioned), --s3-table-names (Serverless) |
| Wrong / empty namespace | Namespace constructed instead of read from API | Use the namespace from the describe/get response — S3Tables.S3TableNamespace (Provisioned) or s3TablePublishStatus.s3TableNamespace (Serverless) |
Status response has no S3Tables / s3TablePublishStatus field at all, even though publishing is on | Outdated AWS CLI / SDK. The field is silently omitted rather than raising an error, so this looks identical to the feature being disabled | Upgrade the CLI/SDK, then re-run. Confirm publishing is actually off before acting on the absence — check the aws-redshift table bucket for the namespace, or that LogDestinationType includes s3table |
Unknown options: --log-exports, --log-export-action on Serverless | Provisioned flag names used against update-namespace | Use --s3-table-names and --s3-table-action — see the flag table in the Enable section |
AccessDenied querying the table | Missing s3tables:GetTable or GetTableData | See references/security.md |
Empty results from sys_connection_log | Querying identity lacks visibility | Use an identity with superuser-level access |
Catalog doesn't appear in pg_database | LF resource not registered, or SLRs not ReadOnlyAdmins | Complete the Lake Formation steps in references/permissions-setup.md, wait 5 min or reboot |
| "Unable to assume role" from Glue | Missing sts:SetContext/sts:SetSourceIdentity in trust policy, or missing AWSLakeFormationDataAdmin | Fix trust policy and attach AWSLakeFormationDataAdmin |
VerificationStatus: NOT_VERIFIED | Normal after Lake Formation registration | No action needed if queries work |
| Query fails with "does not exist" in Redshift | Catalog not yet auto-mounted (poll delay) | Wait up to 300s or reboot cluster |
Security Considerations
Full policies, key policy, and detection setup: ${SKILL_DIR}/references/security.md. Read it before granting access. The non-negotiables:
Scope IAM to the S3 Tables catalog, not wildcards. Glue database/table ARNs nest under
s3tablescatalog/aws-redshift— the baredatabase/*form grants metadata read on the whole account.lakeformation:GetDataAccessis the one action that must use"Resource": "*"; constrain it with anaws:ResourceAccountStringEqualscondition.The KMS key policy needs two principals, not one:
systemtables.redshift.amazonaws.com(publisher) andmaintenance.s3tables.amazonaws.com(compaction). Granting only the publisher lets writes succeed while compaction silently fails.query_textcan contain credentials, not just schema — interpolated SQL andCREATE USER ... PASSWORDland verbatim insys_query_history. Treat broad access to that table as a secrets-exposure decision; restrict the column with Lake Formation.Publishing is itself auditable and worth alarming on.
s3tables.amazonaws.comAccessDeniedspikes andsys_connection_logfailed-auth counts are the two signals to alert on; encrypt the alarm topic with a customer-managed key.
Reference Files
${SKILL_DIR} is the absolute path of the directory containing this SKILL.md. Load these on demand; do not read them all up front.
| File | What it covers | When to load |
|---|---|---|
${SKILL_DIR}/references/permissions-setup.md | Athena prerequisites and workgroup encryption; the full Redshift auto-mount path — IAM role trust/inline policies, Lake Formation register-resource, put-data-lake-settings, the SLR ReadOnlyAdmins step, and the 300s auto-mount poll | Before running any IAM or Lake Formation setup |
${SKILL_DIR}/references/example-queries.md | Worked SQL for longest-running queries, error analysis, connection auditing, queue-time trends, and joins across sys_* tables | When writing queries against the published tables |
${SKILL_DIR}/references/security.md | Full least-privilege policy, KMS key policy with both service principals, query_text sensitivity, CloudTrail/metric-filter detection | Before granting access, or when hardening an existing setup |
Additional Resources
Security best practices:
Lake Formation underlying data access control — why
lakeformation:GetDataAccessrequires"Resource": "*"
Files
- ATTRIBUTION.mdAdded by AutoGineer934 B
- LICENSELicence file added by AutoGineer9.9 KiB
- NOTICELicence file added by AutoGineer67 B
- SKILL.md23.0 KiB
- references/example-queries.md3.6 KiB
- references/permissions-setup.md10.8 KiB
- references/security.md6.0 KiB
LICENSE
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
Requirements and compatibility
Written for: Claude Code
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Claude Code frontmatter, Needs an MCP server, Needs a command-line tool
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- AWS
- Publisher
- AWS (Official)
- Source
- aws/agent-toolkit-for-aws · skills/specialized-skills/system-table-skills/querying-aws-redshift · commit 0a218f8
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- NOTICE (added by AutoGineer from NOTICE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by AWS or AWS.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download querying-aws-redshift.zip