Add support of Sydney region

This commit is contained in:
Aiden Dai
2024-04-12 13:51:57 +08:00
parent 8a9ab560f1
commit 2bee83a79a
4 changed files with 25 additions and 106 deletions

View File

@@ -207,6 +207,7 @@ This solution only supports the regions where Amazon Bedrock is available:
- US East (N. Virginia): us-east-1
- US West (Oregon): us-west-2
- Asia Pacific (Singapore): ap-southeast-1
- Asia Pacific (Sydney): ap-southeast-2
- Asia Pacific (Tokyo): ap-northeast-1
- Europe (Frankfurt): eu-central-1
- Europe (Paris): eu-west-3

View File

@@ -212,6 +212,7 @@ print(response)
- 美国东部(弗吉尼亚北部)us-east-1
- 美国西部(俄勒冈州)us-west-2
- 亚太地区(新加坡)ap-southeast-1
- 亚太地区(悉尼)ap-southeast-2
- 亚太地区(东京)ap-northeast-1
- 欧洲(法兰克福)eu-central-1
- 欧洲(巴黎)eu-west-3

View File

@@ -1,5 +1,6 @@
{
"Description": "Bedrock Access Gateway - OpenAI-compatible RESTful APIs for Amazon Bedrock",
"Transform": "AWS::LanguageExtensions",
"Parameters": {
"ApiKeyParam": {
"Type": "String",
@@ -326,44 +327,9 @@
"Fn::Join": [
"",
[
"366590864501.dkr.ecr.",
{
"Fn::Select": [
4,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{
"Ref": "AWS::Region"
},
"repoArn"
]
}
]
}
]
},
".dkr.ecr.",
{
"Fn::Select": [
3,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{
"Ref": "AWS::Region"
},
"repoArn"
]
}
]
}
]
"Ref": "AWS::Region"
},
".",
{
@@ -387,7 +353,10 @@
{
"Ref": "AWS::Region"
},
"model"
"model",
{
"DefaultValue": "anthropic.claude-3-sonnet-20240229-v1:0"
}
]
},
"DEFAULT_EMBEDDING_MODEL": "cohere.embed-multilingual-v3"
@@ -553,28 +522,16 @@
"Mappings": {
"ProxyRegionTable03E5BEB3": {
"us-east-1": {
"repoArn": "arn:aws:ecr:us-east-1:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-3-sonnet-20240229-v1:0"
},
"us-west-2": {
"repoArn": "arn:aws:ecr:us-west-2:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-3-sonnet-20240229-v1:0"
},
"ap-southeast-1": {
"repoArn": "arn:aws:ecr:ap-southeast-1:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-v2"
},
"ap-northeast-1": {
"repoArn": "arn:aws:ecr:ap-northeast-1:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-v2:1"
},
"eu-central-1": {
"repoArn": "arn:aws:ecr:eu-central-1:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-v2:1"
},
"eu-west-3": {
"repoArn": "arn:aws:ecr:eu-west-3:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-3-sonnet-20240229-v1:0"
}
}
},

View File

@@ -1,5 +1,6 @@
{
"Description": "Bedrock Access Gateway - OpenAI-compatible RESTful APIs for Amazon Bedrock",
"Transform": "AWS::LanguageExtensions",
"Parameters": {
"ApiKeyParam": {
"Type": "String",
@@ -267,12 +268,15 @@
],
"Effect": "Allow",
"Resource": {
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{
"Ref": "AWS::Region"
},
"repoArn"
"Fn::Join": [
"",
[
"arn:aws:ecr:",
{
"Ref": "AWS::Region"
},
":366590864501:repository/bedrock-proxy-api-ecs"
]
]
}
},
@@ -420,7 +424,10 @@
{
"Ref": "AWS::Region"
},
"model"
"model",
{
"DefaultValue": "anthropic.claude-3-sonnet-20240229-v1:0"
}
]
}
},
@@ -434,44 +441,9 @@
"Fn::Join": [
"",
[
"366590864501.dkr.ecr.",
{
"Fn::Select": [
4,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{
"Ref": "AWS::Region"
},
"repoArn"
]
}
]
}
]
},
".dkr.ecr.",
{
"Fn::Select": [
3,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{
"Ref": "AWS::Region"
},
"repoArn"
]
}
]
}
]
"Ref": "AWS::Region"
},
".",
{
@@ -778,28 +750,16 @@
"Mappings": {
"ProxyRegionTable03E5BEB3": {
"us-east-1": {
"repoArn": "arn:aws:ecr:us-east-1:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-3-sonnet-20240229-v1:0"
},
"us-west-2": {
"repoArn": "arn:aws:ecr:us-west-2:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-3-sonnet-20240229-v1:0"
},
"ap-southeast-1": {
"repoArn": "arn:aws:ecr:ap-southeast-1:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-v2"
},
"ap-northeast-1": {
"repoArn": "arn:aws:ecr:ap-northeast-1:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-v2:1"
},
"eu-central-1": {
"repoArn": "arn:aws:ecr:eu-central-1:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-v2:1"
},
"eu-west-3": {
"repoArn": "arn:aws:ecr:eu-west-3:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-3-sonnet-20240229-v1:0"
}
}
},