We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HatmanStack/RAGStack-Lambda'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
invalidate_cloudfront.sh•892 B
#!/bin/bash
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
# Invalidate CloudFront cache after UI deployment
set -e
STACK_NAME=${1:-RAGStack-prod}
echo "Getting CloudFront distribution ID from stack: $STACK_NAME"
DIST_ID=$(aws cloudformation describe-stacks \
--stack-name "$STACK_NAME" \
--query 'Stacks[0].Outputs[?OutputKey==`CloudFrontDistributionId`].OutputValue' \
--output text)
if [ -z "$DIST_ID" ]; then
echo "❌ Error: Could not find CloudFront distribution ID in stack outputs"
exit 1
fi
echo "Invalidating CloudFront cache for distribution: $DIST_ID"
# Note: CloudFront is a global service, no region parameter needed
aws cloudfront create-invalidation \
--distribution-id "$DIST_ID" \
--paths "/*"
echo "✓ Cache invalidation initiated"
echo "Note: Invalidation may take a few minutes to complete"