Such setup depends on the following VPC endpoints:
- ECR endpoints for Docker API, and ECR API;
- S3 gateway endpoint (ECR images are backed by S3);
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| "strings" |
| #!/usr/bin/env python3 | |
| import boto3 | |
| from botocore.exceptions import ClientError | |
| client = boto3.client("bedrock-runtime", region_name="us-east-1") | |
| model_id = "us.amazon.nova-micro-v1:0" | |
| user_message = "Describe the purpose of a 'hello world' program in one line." | |
| conversation = [ |
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "encoding/json" | |
| "errors" | |
| "flag" | |
| "fmt" | |
| "io" |
| module bedrock-llm | |
| go 1.23rc1 | |
| require ( | |
| github.com/aws/aws-sdk-go-v2/config v1.27.21 | |
| github.com/aws/aws-sdk-go-v2/service/bedrockruntime v1.11.0 | |
| ) | |
| require ( |
| module sqlite-generated-columns | |
| go 1.22.3 | |
| require modernc.org/sqlite v1.29.9 | |
| require ( | |
| github.com/dustin/go-humanize v1.0.1 // indirect | |
| github.com/google/uuid v1.6.0 // indirect | |
| github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect |
| goos: darwin | |
| goarch: arm64 | |
| pkg: ids-rewrite-experiment | |
| BenchmarkSometimes/ticker-8 387814022 2.915 ns/op | |
| BenchmarkSometimes/sometimes-8 44387656 27.03 ns/op |
| Description: Tailscale SSH sessions recorder | |
| Parameters: | |
| VPC: | |
| Type: AWS::EC2::VPC::Id | |
| Description: VPC ID | |
| Subnets: | |
| Type: List<AWS::EC2::Subnet::Id> | |
| Description: VPC subnets |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "strings" | |
| "unicode" | |
| "github.com/yuin/goldmark" |
| Description: CloudFormation custom headers test | |
| Resources: | |
| SiteS3Bucket: | |
| Type: AWS::S3::Bucket | |
| DeletionPolicy: Delete | |
| UpdateReplacePolicy: Delete | |
| Properties: | |
| BucketEncryption: |