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
| """Custom Strands model provider using Anthropic SDK with AWS Bedrock.""" | |
| import base64 | |
| import json | |
| import logging | |
| import mimetypes | |
| from collections.abc import AsyncGenerator | |
| from typing import Any, TypedDict, TypeVar, cast | |
| import anthropic |
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
| """Upload 10 PDF documents to a Strands agent using AnthropicBedrockModel. | |
| Demonstrates that the Anthropic Messages API (via AnthropicBedrockModel) bypasses | |
| the Bedrock Converse API's 5-document-per-request limit. | |
| """ | |
| from pathlib import Path | |
| import strands | |
| from anthropic_bedrock_model import AnthropicBedrockModel | |
| from fpdf import FPDF |
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
| trigger: | |
| branches: | |
| include: | |
| - development | |
| pool: | |
| name: AWS_AGENT_POOL # Name of the agent pool that has AWS agent created in step 1 | |
| resources: | |
| containers: |
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
| terraform { | |
| backend "s3" { | |
| bucket = "tfrb" | |
| key = "tfrb.state" | |
| region = "eu-west-1" | |
| } | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| version = "~> 3.0" |
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
| trigger: | |
| - development | |
| variables: | |
| - group: tf-aws-agent | |
| pool: | |
| vmImage: ubuntu-latest | |
| steps: |
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: | | |
| VM for Azure DevOps build agent to execute terraform code | |
| Resources: | |
| AzTFVpc: | |
| Type: AWS::EC2::VPC | |
| Properties: |
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
| apiVersion: install.istio.io/v1alpha1 | |
| kind: IstioOperator | |
| metadata: | |
| namespace: istio-system | |
| name: multiple-ingress-istiocontrolplane | |
| spec: | |
| profile: default | |
| values: | |
| security: | |
| selfSigned: false |
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
| apiVersion: install.istio.io/v1alpha1 | |
| kind: IstioOperator | |
| metadata: | |
| namespace: istio-system | |
| name: multiple-ingress-istiocontrolplane | |
| spec: | |
| profile: default | |
| values: | |
| security: | |
| selfSigned: false |
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
| apiVersion: install.istio.io/v1alpha1 | |
| kind: IstioOperator | |
| metadata: | |
| namespace: istio-system | |
| name: multiple-ingress-istiocontrolplane | |
| spec: | |
| profile: default | |
| values: | |
| security: | |
| selfSigned: false |
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
| kind: Pod | |
| apiVersion: v1 | |
| metadata: | |
| name: nginx-secrets-store | |
| spec: | |
| containers: | |
| - image: nginx | |
| name: nginx | |
| volumeMounts: | |
| - name: secrets-store-inline |
NewerOlder