-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Go v1.21 * refactor: Use ctx in HTTP Requests * build(terraform): Event Bridge tags * docs: README * refactor(transform): ctrl msg handling in meta transforms * refactor(message): AsControl * feat(transform): Add Unix Millisecond Transforms * ci(go): Update Go Version * fix(transform): Update Factory * ci(go): Go Lint Version * build(terraform): DynamoDB TTL Variable * docs(example): Kinesis Time Travel * style(Python): black Linting * fix(build path): moved config files under /file to /substation dir * fix(transform): Meta Duplicate Control Messages * docs(examples): Time String Conversion * fix(bufio): Dynamic Buffers for AWS Lambda * fix(transform): Dedupe Meta Switch Ctrl Messages * fix(aws): Use No-Cancel Context * fix(bufio): Lambda Buffer Capacity * style(examples): jsonnetfmt * chore(go): Upgrade to 1.22, Dependencies * build(terraform): Optional CMK KMS, AppConfig * build(terraform): KMS ARN * build(terraform): Default Encryption, Refactor S3 WORM * build(terraform): AppConfig, KMS Variable Null Conditions * build(terraform): AppConfig module * build(terraform): Refactor AppConfig Module * docs(examples): Refactor Terraform Examples * style(terraform): Formatting * docs(README): Terraform Example * docs(README): Terraform Example * docs(examples): Fix Lambda Microservice TF * build(config): Unix Milli Transforms * build(config): Fix Source Key * fix(transform): Enrich HTTP Post * feat(aws): Custom Retryer Support * feat(aws): Customizable Retryable AWS Errors * docs(example): XDR S3 Example * build(libsonnet): AWS Secrets * build(aws/s3): S3 Compliance Settings * docs(example): S3 XDR * docs(example): S3 XDR * docs(api): API Docs * docs(md): Repo Docs * fix(deps): Update Go Mod * docs(python): Update Script Doc * build(python): Add Kinesis Put Records Script * style(scripts): black * docs(terraform): Module Docs * build(terraform): Shorten IAM Resource Names * build(dockerfile): Enable CGO * build(terraform): Add AppConfig Validator Support * docs(examples): Add AppConfig Validation Example * build(terraform): Dynamic Validator * docs(examples): AppConfig Validator * docs(examples): AppConfig Lambda * refactor(app): Rename Validation to Validator * build(docker): dockerignore * feat(sub): Support Custom Transforms * chore(internal): Remove Unused Code * examples: Updates --------- Co-authored-by: Mallika Kaur Oberoi <[email protected]>
- Loading branch information
Showing
284 changed files
with
3,349 additions
and
1,306 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.devcontainer/ | ||
.github/ | ||
.vscode/ | ||
build/config/ | ||
build/container/ | ||
build/terraform/ | ||
examples/ |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
3 changes: 2 additions & 1 deletion
3
...ontainer/aws/lambda/validation/Dockerfile → ...container/aws/lambda/validator/Dockerfile
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
""" | ||
Puts records into a Kinesis Data Stream. | ||
Usage example: | ||
python3 put_records.py my-stream my-file.txt --print-response | ||
""" | ||
|
||
import argparse | ||
import boto3 | ||
import uuid | ||
|
||
CLIENT = boto3.client("kinesis") | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser( | ||
description="Puts records into a Kinesis Data Stream" | ||
) | ||
parser.add_argument("stream_name", help="The name of the stream") | ||
parser.add_argument( | ||
"file", help="The file containing data that is put into the stream" | ||
) | ||
parser.add_argument( | ||
"--print-response", | ||
help="Determines if the response is printed to the console", | ||
action="store_true", | ||
) | ||
args = parser.parse_args() | ||
|
||
with open(args.file, "rb") as f: | ||
for line in f.readlines(): | ||
data = line.decode("utf-8").strip() | ||
resp = CLIENT.put_record( | ||
StreamName=args.stream_name, Data=data, PartitionKey=str(uuid.uuid4()) | ||
) | ||
|
||
if args.print_response: | ||
print(resp) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains 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
Oops, something went wrong.