This gist is part of a tutorial by MakeOps on how to invoke Amazon Bedrock from an AWS Lambda function.
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
| AWS_REGION_NAME = 'eu-west-1' | |
| BEDROCK_AGENT_ALIAS_ID = '' | |
| BEDROCK_AGENT_ID = '' |
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
| AWS_REGION = 'eu-west-1' | |
| BEDROCK_DATA_AUTOMATION_PROJECT_ARN = '' | |
| BEDROCK_DATA_AUTOMATION_INPUT_BUCKET = '' | |
| BEDROCK_DATA_AUTOMATION_OUTPUT_BUCKET = '' | |
| BEDROCK_DATA_AUTOMATION_PROFILE_ARN = '' |
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
| REGION_NAME = "us-east-1" | |
| AWS_DEFAULT_PROFILE = "demo" | |
| MODEL_ID = "amazon.titan-embed-text-v2:0" | |
| S3_VECTOR_BUCKET_NAME = "" | |
| S3_VECTOR_INDEX_NAME = "" | |
| INPUT_DATASET_PATH = "dataset/occurrences.csv" | |
| MAX_INPUT_DOCUMENTS = "200" |
This is part of a YouTube tutorial series by MakeOps.
The file is a script that invokes Qwen2.5 VL via Amazon Bedrock to describe and image.
usage: main.py [-h] image
positional arguments:
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
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "github.com/aws/aws-sdk-go-v2/config" | |
| "github.com/aws/aws-sdk-go-v2/feature/dsql/auth" |
This script provides a standard way to access postgres from a remote server. It will fetch db credentials based on the following inputs:
DB_CREDENTIALS_NAMEis the name of the Secrets Manager secret to retrieve the db credentials from. (Required)DB_NAMEis the database name to connect to (Optional, Default:postgres)ENVshould be set toprodto modify the remote database, else it returns for a local environment. (Optional)
Install the Amazon CloudWatch Agent on the instances. We want to monitor the memory usage mostly but the CPU & disk metrics are nice to have available too.
Connect to the instance and run the following:
$ wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
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
| hostname = "" | |
| acm_certificate_arn = "" |
NewerOlder