Comments (4)
Community Note
Voting for Prioritization
- Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
- Please see our prioritization guide for information on how we prioritize.
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
- If you are interested in working on this issue, please leave a comment.
- If this would be your first contribution, please review the contribution guide.
from terraform-provider-aws.
Currently I am solving the alias issue with the following:
resource "aws_bedrockagent_agent_alias" "demo" {
agent_alias_name = "demo"
agent_id = aws_bedrockagent_agent.demo.agent_id
description = "Demo"
routing_configuration {
agent_version = data.external.latest_agent_version.result.agent_version
}
}
data "external" "latest_agent_version" {
program = ["bash","${path.module}/scripts/get_agent_details.sh",aws_bedrockagent_agent.demo.agent_id]
depends_on = [ aws_bedrockagent_agent.demo ]
}
#!/usr/bin/env bash
AGENT_ID=$1
AGENT_VERSION=$(aws bedrock-agent list-agents --query "agentSummaries[?agentId=='${AGENT_ID}'].latestAgentVersion" --output text)
jq -n --arg agent_version "${AGENT_VERSION}" '{"agent_version":$agent_version}'
from terraform-provider-aws.
Just adding some observations here since I've been experimenting with the Bedrock Agents resources recently.
It seems that the agent_version
in the context of aws_bedrockagent_agent
is not very helpful because the value is supposedly hardcoded to DRAFT
if you look at the API reference. But the actual behavior is also different or changing. I can see that the field is defined in the aws_bedrockagent_agent
resource code as a computed attribute but it's being set to null because the AWS API is not returning it! When I called aws bedrock-agent get-agent
in the CLI, the response does NOT include the agentVersion
field.
It also doesn't help when versions are created only when an alias is created. So what I think we need is a new data source aws_bedrockagent_agent_versions
to fetch the available versions for creating an alias pointing to a specific version.
from terraform-provider-aws.
Per @acwwat The version for a agent created via aws_bedrockagent_agent
is always DRAFT
, using aws_bedrockagent_agent_alias
without routing_configuration
will create a new version of the agent from the currently prepared DRAFT
. That appears to be the only way to create a new version at this time.
You can also using the data source in #38792 to look up specific versions if you want to create an aws_bedrockagent_agent_alias
to a specific version that already exists.
We should probably deprecate and remove agent_version
as the API isn't returning it and it could only be DRAFT
it's not providing anything useful.
As it stands I don't think this is a bug we can fix, the CreateAgentAlias
API call is the only call that creates new versions of the agent.
from terraform-provider-aws.
Related Issues (20)
- [Enhancement]: Allow aws_identitystore_user to also update attributes HOT 1
- [Bug]: ap-southeast-5 HOT 2
- [Bug]: HOT 2
- [Bug]: arnType custom type implementation prevents validation to work properly HOT 1
- [Bug]: aws_quicksight_vpc_connection ID validation rules are broken HOT 3
- [Enhancement]: aws_db_cluster_snapshot_copy for copying Aurora snapshots HOT 1
- [Bug]: error with updating VATP (TF replace) HOT 1
- [Bug]: can't create multiple cloudwatch_event_target with same rule and arn HOT 1
- datasource/aws_globalaccelerator_accelerator: Attribute `id` should not be settable HOT 1
- [Bug]: HOT 3
- [Enhancement]: Update the documentation to have all options for engine name HOT 1
- [Enhancement]: Add sensitive flag to bgp_auth_key parameters for Direct Connect Virtual Interfaces HOT 1
- [Docs]:wrong example for aws_ebs_snapshot_block_public_access HOT 4
- [Bug]: `r/aws_lexv2models_slot_type`: `audio_recognition_strategy` cannot be set HOT 2
- [Bug]: r/aws_redshiftserverless_namespace: non-empty plan after apply with log_exports in output HOT 1
- [Bug]: r/aws_redshiftserverless_namespace: unable to update multiple attributes at the same time HOT 1
- [Bug]: r/aws_redshiftserverless_namespace: unable to switch to managed admin password HOT 1
- [Bug]: aws_codebuild_webhook for GitHub organisation fails with OAuthProviderException HOT 1
- [Bug]: State for `aws_db_parameter_group` was not updated HOT 1
- [New Data Source]: aws_spot_datafeed_subscription HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-aws.