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 East (N. Virginia): us-east-1
- US West (Oregon): us-west-2 - US West (Oregon): us-west-2
- Asia Pacific (Singapore): ap-southeast-1 - Asia Pacific (Singapore): ap-southeast-1
- Asia Pacific (Sydney): ap-southeast-2
- Asia Pacific (Tokyo): ap-northeast-1 - Asia Pacific (Tokyo): ap-northeast-1
- Europe (Frankfurt): eu-central-1 - Europe (Frankfurt): eu-central-1
- Europe (Paris): eu-west-3 - Europe (Paris): eu-west-3

View File

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

View File

@@ -1,5 +1,6 @@
{ {
"Description": "Bedrock Access Gateway - OpenAI-compatible RESTful APIs for Amazon Bedrock", "Description": "Bedrock Access Gateway - OpenAI-compatible RESTful APIs for Amazon Bedrock",
"Transform": "AWS::LanguageExtensions",
"Parameters": { "Parameters": {
"ApiKeyParam": { "ApiKeyParam": {
"Type": "String", "Type": "String",
@@ -326,45 +327,10 @@
"Fn::Join": [ "Fn::Join": [
"", "",
[ [
{ "366590864501.dkr.ecr.",
"Fn::Select": [
4,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{ {
"Ref": "AWS::Region" "Ref": "AWS::Region"
}, },
"repoArn"
]
}
]
}
]
},
".dkr.ecr.",
{
"Fn::Select": [
3,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{
"Ref": "AWS::Region"
},
"repoArn"
]
}
]
}
]
},
".", ".",
{ {
"Ref": "AWS::URLSuffix" "Ref": "AWS::URLSuffix"
@@ -387,7 +353,10 @@
{ {
"Ref": "AWS::Region" "Ref": "AWS::Region"
}, },
"model" "model",
{
"DefaultValue": "anthropic.claude-3-sonnet-20240229-v1:0"
}
] ]
}, },
"DEFAULT_EMBEDDING_MODEL": "cohere.embed-multilingual-v3" "DEFAULT_EMBEDDING_MODEL": "cohere.embed-multilingual-v3"
@@ -553,28 +522,16 @@
"Mappings": { "Mappings": {
"ProxyRegionTable03E5BEB3": { "ProxyRegionTable03E5BEB3": {
"us-east-1": { "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" "model": "anthropic.claude-3-sonnet-20240229-v1:0"
}, },
"ap-southeast-1": { "ap-southeast-1": {
"repoArn": "arn:aws:ecr:ap-southeast-1:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-v2" "model": "anthropic.claude-v2"
}, },
"ap-northeast-1": { "ap-northeast-1": {
"repoArn": "arn:aws:ecr:ap-northeast-1:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-v2:1" "model": "anthropic.claude-v2:1"
}, },
"eu-central-1": { "eu-central-1": {
"repoArn": "arn:aws:ecr:eu-central-1:366590864501:repository/bedrock-proxy-api",
"model": "anthropic.claude-v2:1" "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", "Description": "Bedrock Access Gateway - OpenAI-compatible RESTful APIs for Amazon Bedrock",
"Transform": "AWS::LanguageExtensions",
"Parameters": { "Parameters": {
"ApiKeyParam": { "ApiKeyParam": {
"Type": "String", "Type": "String",
@@ -267,12 +268,15 @@
], ],
"Effect": "Allow", "Effect": "Allow",
"Resource": { "Resource": {
"Fn::FindInMap": [ "Fn::Join": [
"ProxyRegionTable03E5BEB3", "",
[
"arn:aws:ecr:",
{ {
"Ref": "AWS::Region" "Ref": "AWS::Region"
}, },
"repoArn" ":366590864501:repository/bedrock-proxy-api-ecs"
]
] ]
} }
}, },
@@ -420,7 +424,10 @@
{ {
"Ref": "AWS::Region" "Ref": "AWS::Region"
}, },
"model" "model",
{
"DefaultValue": "anthropic.claude-3-sonnet-20240229-v1:0"
}
] ]
} }
}, },
@@ -434,45 +441,10 @@
"Fn::Join": [ "Fn::Join": [
"", "",
[ [
{ "366590864501.dkr.ecr.",
"Fn::Select": [
4,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{ {
"Ref": "AWS::Region" "Ref": "AWS::Region"
}, },
"repoArn"
]
}
]
}
]
},
".dkr.ecr.",
{
"Fn::Select": [
3,
{
"Fn::Split": [
":",
{
"Fn::FindInMap": [
"ProxyRegionTable03E5BEB3",
{
"Ref": "AWS::Region"
},
"repoArn"
]
}
]
}
]
},
".", ".",
{ {
"Ref": "AWS::URLSuffix" "Ref": "AWS::URLSuffix"
@@ -778,28 +750,16 @@
"Mappings": { "Mappings": {
"ProxyRegionTable03E5BEB3": { "ProxyRegionTable03E5BEB3": {
"us-east-1": { "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" "model": "anthropic.claude-3-sonnet-20240229-v1:0"
}, },
"ap-southeast-1": { "ap-southeast-1": {
"repoArn": "arn:aws:ecr:ap-southeast-1:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-v2" "model": "anthropic.claude-v2"
}, },
"ap-northeast-1": { "ap-northeast-1": {
"repoArn": "arn:aws:ecr:ap-northeast-1:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-v2:1" "model": "anthropic.claude-v2:1"
}, },
"eu-central-1": { "eu-central-1": {
"repoArn": "arn:aws:ecr:eu-central-1:366590864501:repository/bedrock-proxy-api-ecs",
"model": "anthropic.claude-v2:1" "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"
} }
} }
}, },