This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| This script generates sample data, uploads it to an S3 bucket, and creates Iceberg and Athena tables. | |
| It also creates IAM roles and policies for optimization and statistics generation if specified. | |
| There is also an option to create a Firehose delivery stream and insert random records into it. | |
| Install: | |
| python3 -m venv .venv | |
| source .venv/bin/activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # pip install boto3 | |
| # ./partition-projection-synthetic-data.py --bucket <bucket-name> | |
| # | |
| # Creates the following files: | |
| # - partition-projection-create-table.sql - CREATE TABLE statement | |
| # - partition-projection-query-table.sql - SQL to query the table | |
| import logging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias pr_comment='~/.pr-comment.sh' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # This script will check for any StackSets that are not in the manifest.yaml file. | |
| # https://github.com/aws-solutions/aws-control-tower-customizations/releases/tag/v2.5.0 | |
| import boto3 | |
| import yaml | |
| import logging | |
| logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import openai | |
| import json | |
| import frontmatter | |
| import time | |
| import requests | |
| # pip install python-frontmatter requests openai | |
| openai.api_key = os.getenv("OPENAI_API_KEY") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Workflow | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| ci: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OIDC Example action | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| example: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: Roles and Resources required to export Amazon WorkMail content programmatically | |
| Resources: | |
| WorkMailExportBucket: | |
| Type: AWS::S3::Bucket | |
| WorkMailExportBucketKey: | |
| Type: AWS::KMS::Key | |
| DeletionPolicy: Retain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Component deploy | |
| on: | |
| repository_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| python3 -m pip install -U git+https://github.com/aws-greengrass/[email protected] | |
| gdk component build | |
| gdk component publish |