Skip to content

Commit

Permalink
Update external-deployments operator role policies (#301)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: ddl-tnguyen <[email protected]>
Co-authored-by: Miguel Harmant <[email protected]>
  • Loading branch information
3 people authored Nov 22, 2024
1 parent ba5ca30 commit 97fc0d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/deploy/set-mod-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ validate_mod_version() {
fi

local tag_array=()
mapfile -t tag_array <<<$("${curl_cmd[@]}" "$url" | jq -r '.[].name | select(test("^v\\d+\\.\\d+\\.\\d+$"))')
mapfile -t tag_array <<<$("${curl_cmd[@]}" "$url" | jq -r '.[].name | select(test("^v\\d+\\.\\d+\\.\\d+(-\\d+)?$"))')

for tag in "${tag_array[@]}"; do
[[ "$MOD_VERSION" == "$tag" ]] && return
Expand Down
3 changes: 3 additions & 0 deletions modules/external-deployments/operator_role_policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ data "aws_iam_policy_document" "in_account_policies" {
"sagemaker:DescribeModel",
"sagemaker:InvokeEndpoint",
"sagemaker:InvokeEndpointWithResponseStream",
"sagemaker:ListEndpointConfigs",
"sagemaker:ListEndpoints",
"sagemaker:ListModels",
"sagemaker:UpdateEndpoint",
"sagemaker:UpdateEndpointWeightsAndCapacities"
]
Expand Down

0 comments on commit 97fc0d8

Please sign in to comment.