Allow Specifying ARN or Custom Inference ID When Selecting "Setup AWS" in Model Provider Settings #8254

Closed
opened 2026-02-21 18:24:43 -05:00 by yindo · 3 comments
Owner

Originally created by @sea-turt1e on GitHub (Feb 13, 2025).

Image

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Currently, the "Available Model Name" field only accepts general inference profile IDs (e.g., amazon-titan-text-lite-v1).

However, this approach does not allow setting cost allocation tags as described in the AWS announcement:
[Amazon Bedrock Supports Cost Allocation Tags for Inference Profiles](https://aws.amazon.com/about-aws/whats-new/2024/11/amazon-bedrock-cost-allocation-tags-inference-profiles/?nc1=h_ls).

To apply cost allocation tags, we need to create a copy of a foundation model and tag it accordingly. This can be done using the following command:

aws bedrock create-inference-profile --region 'ap-northeast-1' \
--inference-profile-name 'sample-profile-name' \
--description 'sample-profile-name' \
--model-source '{"copyFrom": "arn:aws:bedrock:ap-northeast-1::foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0"}' \
--tags '[{"key": "CostAllocateTag","value": "sample"}]'

Once created, the inference profile appears as follows:

aws bedrock list-inference-profiles --region 'ap-northeast-1' --type-equals 'APPLICATION'
{
    "inferenceProfileSummaries": [
        {
            "inferenceProfileName": "sample-profile-name",
            "description": "sample-profile-name",
            "createdAt": "2024-11-02T07:29:09.225303+00:00",
            "updatedAt": "2024-11-02T07:29:09.225303+00:00",
            "inferenceProfileArn": "arn:aws:bedrock:ap-northeast-1:123456789012:application-inference-profile/ps********",
            "models": [
                {
                    "modelArn": "arn:aws:bedrock:ap-northeast-1::foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0"
                }
            ],
            "inferenceProfileId": "ps********",
            "status": "ACTIVE",
            "type": "APPLICATION"
        }
    ]
}

To perform inference using the custom model, we use the following command:

aws bedrock-runtime converse --region ap-northeast-1 \
--model-id $INFERENCE_PROFILE_ARN \
--messages '[{"role": "user", "content": [{"text": "Hello"}]}]'

In this case, the required identifier for inference is INFERENCE_PROFILE_ARN, but there is currently no way to set this in Dify.
It would be very helpful if Dify could support specifying an ARN or a custom inference ID in the Model Provider settings.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @sea-turt1e on GitHub (Feb 13, 2025). ![Image](https://github.com/user-attachments/assets/f3aa8ab3-aa82-4618-9710-f484a722b74d) ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. Currently, the "Available Model Name" field only accepts general inference profile IDs (e.g., `amazon-titan-text-lite-v1`). However, this approach does not allow setting **cost allocation tags** as described in the AWS announcement: [[Amazon Bedrock Supports Cost Allocation Tags for Inference Profiles](https://aws.amazon.com/about-aws/whats-new/2024/11/amazon-bedrock-cost-allocation-tags-inference-profiles/?nc1=h_ls)](https://aws.amazon.com/about-aws/whats-new/2024/11/amazon-bedrock-cost-allocation-tags-inference-profiles/?nc1=h_ls). To apply cost allocation tags, we need to create a copy of a foundation model and tag it accordingly. This can be done using the following command: ```sh aws bedrock create-inference-profile --region 'ap-northeast-1' \ --inference-profile-name 'sample-profile-name' \ --description 'sample-profile-name' \ --model-source '{"copyFrom": "arn:aws:bedrock:ap-northeast-1::foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0"}' \ --tags '[{"key": "CostAllocateTag","value": "sample"}]' ``` Once created, the inference profile appears as follows: ```sh aws bedrock list-inference-profiles --region 'ap-northeast-1' --type-equals 'APPLICATION' ``` ```json { "inferenceProfileSummaries": [ { "inferenceProfileName": "sample-profile-name", "description": "sample-profile-name", "createdAt": "2024-11-02T07:29:09.225303+00:00", "updatedAt": "2024-11-02T07:29:09.225303+00:00", "inferenceProfileArn": "arn:aws:bedrock:ap-northeast-1:123456789012:application-inference-profile/ps********", "models": [ { "modelArn": "arn:aws:bedrock:ap-northeast-1::foundation-model/anthropic.claude-3-5-sonnet-20240620-v1:0" } ], "inferenceProfileId": "ps********", "status": "ACTIVE", "type": "APPLICATION" } ] } ``` To perform inference using the custom model, we use the following command: ```sh aws bedrock-runtime converse --region ap-northeast-1 \ --model-id $INFERENCE_PROFILE_ARN \ --messages '[{"role": "user", "content": [{"text": "Hello"}]}]' ``` In this case, **the required identifier for inference is `INFERENCE_PROFILE_ARN`**, but there is currently no way to set this in **Dify**. It would be very helpful if Dify could support specifying an **ARN or a custom inference ID** in the Model Provider settings. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:24:43 -05:00
yindo closed this issue 2026-02-21 18:24:43 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 17, 2025):

Hi, @sea-turt1e. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Enhancement request to Model Provider Settings in AWS.
  • Need to specify an ARN or custom inference ID for cost allocation tags.
  • Current limitation: only general inference profile IDs are accepted.
  • Example command provided for creating a tagged inference profile using AWS Bedrock.

Next Steps

  • Is this issue still relevant to the latest version of the Dify repository? If so, please comment to keep the discussion open.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Mar 17, 2025): Hi, @sea-turt1e. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary** - Enhancement request to Model Provider Settings in AWS. - Need to specify an ARN or custom inference ID for cost allocation tags. - Current limitation: only general inference profile IDs are accepted. - Example command provided for creating a tagged inference profile using AWS Bedrock. **Next Steps** - Is this issue still relevant to the latest version of the Dify repository? If so, please comment to keep the discussion open. - If there is no further activity, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Author
Owner

@sea-turt1e commented on GitHub (Mar 25, 2025):

The feature has not been implemented yet. Therefore, I would like this topic to remain open as it is.

@sea-turt1e commented on GitHub (Mar 25, 2025): The feature has not been implemented yet. Therefore, I would like this topic to remain open as it is.
Author
Owner

@dosubot[bot] commented on GitHub (Mar 25, 2025):

@crazywoola, the user @sea-turt1e has indicated that the enhancement request for Model Provider Settings in AWS is still relevant and the feature has not been implemented yet. Could you please assist them with this issue?

@dosubot[bot] commented on GitHub (Mar 25, 2025): @crazywoola, the user @sea-turt1e has indicated that the enhancement request for Model Provider Settings in AWS is still relevant and the feature has not been implemented yet. Could you please assist them with this issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8254