Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions aws-bedrock.tf
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,23 @@ resource "aws_iam_user_policy" "bedrock_opencode" {
Action = ["bedrock:ListModelInvocationJobs"]
Resource = "*"
},
{
# Model access page is retired: first invoke auto-subscribes the
# account, which Bedrock performs via AWS Marketplace on the caller's
# behalf. Without this, new models fail with a marketplace denial.
Sid = "MarketplaceModelSubscription"
Effect = "Allow"
Action = [
"aws-marketplace:ViewSubscriptions",
"aws-marketplace:Subscribe"
]
Resource = "*"
Condition = {
StringEquals = {
"aws:CalledViaLast" = "bedrock.amazonaws.com"
}
}
},
{
Sid = "BatchDataS3Access"
Effect = "Allow"
Expand Down
Loading