Add PSC-I support to Agent Engine module (#3686)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Google LLC
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -58,7 +58,7 @@ values:
|
||||
- entrypoint_module: agent
|
||||
entrypoint_object: agent
|
||||
requirements_file: requirements.txt
|
||||
version: '3.12'
|
||||
version: '3.13'
|
||||
timeouts: null
|
||||
module.agent_engine.time_sleep.wait_5_minutes:
|
||||
create_duration: 5m
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Google LLC
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -65,7 +65,7 @@ values:
|
||||
- entrypoint_module: agent
|
||||
entrypoint_object: agent
|
||||
requirements_file: requirements.txt
|
||||
version: '3.12'
|
||||
version: '3.13'
|
||||
timeouts: null
|
||||
module.agent_engine.time_sleep.wait_5_minutes:
|
||||
create_duration: 5m
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Google LLC
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -133,7 +133,7 @@ values:
|
||||
package_spec:
|
||||
- dependency_files_gcs_uri: gs://my-agent/dependencies.tar.gz
|
||||
pickle_object_gcs_uri: gs://my-agent/pickle.pkl
|
||||
python_version: '3.12'
|
||||
python_version: '3.13'
|
||||
requirements_gcs_uri: gs://my-agent/requirements.txt
|
||||
service_account: my-agent@project-id.iam.gserviceaccount.com
|
||||
source_code_spec: []
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Google LLC
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -57,7 +57,7 @@ values:
|
||||
- entrypoint_module: agent
|
||||
entrypoint_object: agent
|
||||
requirements_file: requirements.txt
|
||||
version: '3.12'
|
||||
version: '3.13'
|
||||
timeouts: null
|
||||
module.agent_engine.time_sleep.wait_5_minutes:
|
||||
create_duration: 5m
|
||||
|
||||
@@ -51,7 +51,7 @@ values:
|
||||
package_spec:
|
||||
- dependency_files_gcs_uri: dependencies.tar.gz
|
||||
pickle_object_gcs_uri: pickle.pkl
|
||||
python_version: '3.12'
|
||||
python_version: '3.13'
|
||||
requirements_gcs_uri: requirements.txt
|
||||
service_account: my-agent@project-id.iam.gserviceaccount.com
|
||||
source_code_spec: []
|
||||
|
||||
87
tests/modules/agent_engine/examples/psc-i.yaml
Normal file
87
tests/modules/agent_engine/examples/psc-i.yaml
Normal file
@@ -0,0 +1,87 @@
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
values:
|
||||
google_compute_network_attachment.network_attachment:
|
||||
connection_preference: ACCEPT_MANUAL
|
||||
description: Network attachment for Agent Engine PSC-I
|
||||
name: network-attachment
|
||||
producer_accept_lists: null
|
||||
producer_reject_lists: null
|
||||
project: project-id
|
||||
region: europe-west8
|
||||
subnetworks:
|
||||
- subnet_self_link
|
||||
timeouts: null
|
||||
module.agent_engine.google_project_iam_member.default["roles/aiplatform.user"]:
|
||||
condition: []
|
||||
member: serviceAccount:my-agent@project-id.iam.gserviceaccount.com
|
||||
project: project-id
|
||||
role: roles/aiplatform.user
|
||||
module.agent_engine.google_project_iam_member.default["roles/storage.objectViewer"]:
|
||||
condition: []
|
||||
member: serviceAccount:my-agent@project-id.iam.gserviceaccount.com
|
||||
project: project-id
|
||||
role: roles/storage.objectViewer
|
||||
module.agent_engine.google_project_iam_member.default["roles/viewer"]:
|
||||
condition: []
|
||||
member: serviceAccount:my-agent@project-id.iam.gserviceaccount.com
|
||||
project: project-id
|
||||
role: roles/viewer
|
||||
module.agent_engine.google_service_account.service_account[0]:
|
||||
account_id: my-agent
|
||||
create_ignore_already_exists: null
|
||||
description: null
|
||||
disabled: false
|
||||
display_name: my-agent
|
||||
email: my-agent@project-id.iam.gserviceaccount.com
|
||||
member: serviceAccount:my-agent@project-id.iam.gserviceaccount.com
|
||||
project: project-id
|
||||
timeouts: null
|
||||
module.agent_engine.google_vertex_ai_reasoning_engine.managed[0]:
|
||||
description: Terraform managed.
|
||||
display_name: my-agent
|
||||
encryption_spec: []
|
||||
project: project-id
|
||||
region: europe-west8
|
||||
spec:
|
||||
- agent_framework: google-adk
|
||||
class_methods: null
|
||||
deployment_spec: []
|
||||
package_spec: []
|
||||
service_account: my-agent@project-id.iam.gserviceaccount.com
|
||||
source_code_spec:
|
||||
- inline_source:
|
||||
- source_archive: H4sIAMCUSmkAA+1Y727bNhB3CwzbtM/b55v7oQmQyPprJyk8QE2y1ahrZ7HTriiKgJFom4skqhRV2yj6Hvu8PdL2AgP2CHuAHWXZiZP+C5C4WKsfQNjiHY+/I3l3og7I5AElARU1/VjQFxkTNKKxTHU5kZVrgmEYdceBSiMHVCy34Vo2qP4ZXAdM17Qs1eomGJZp160KTK6LwLuQpZIIpBJmPkkElfQteolgERHToeBZ8ib5zBNY/P5PYDqQsaC5ZWw5DUuzDYgki2jTbNTrzrbrGNt6fatuGbhljvaxuZa4ftxc1J9hHv+24dqGbVyKf8uxl+PfbNgNtwLG9VO5jM88/itffPdl5Xal8oj40O3BL1BA9VW+xmZhe4FNPf/xYSa9fv+w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ZR83zitIfl4seSF7rZTWc6YyE/GCsP5ryuO1dS0PckFxfvD2HkK++EWYcR6mmuBczm6H6OJ8x2buRTygYbM6pBGLGYaLuzkISToq3GAxLmHmq8PRrKoYxTjA4BzRMBlkIRA8SJh0Y1moxwRfOO4u+C+2N5/67kwnZ9R8dmn7n+P2aNqc5OyorOWPzTP66+X7RIkSJUpcwn+2Vos4ACgAAA==
|
||||
python_spec:
|
||||
- entrypoint_module: agent
|
||||
entrypoint_object: agent
|
||||
requirements_file: requirements.txt
|
||||
version: '3.13'
|
||||
timeouts: null
|
||||
module.agent_engine.time_sleep.wait_5_minutes:
|
||||
create_duration: 5m
|
||||
destroy_duration: null
|
||||
triggers: null
|
||||
|
||||
counts:
|
||||
google_compute_network_attachment: 1
|
||||
google_project_iam_member: 3
|
||||
google_service_account: 1
|
||||
google_vertex_ai_reasoning_engine: 1
|
||||
modules: 1
|
||||
resources: 7
|
||||
time_sleep: 1
|
||||
|
||||
outputs: {}
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Google LLC
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -32,7 +32,7 @@ values:
|
||||
- entrypoint_module: agent
|
||||
entrypoint_object: agent
|
||||
requirements_file: requirements.txt
|
||||
version: '3.12'
|
||||
version: '3.13'
|
||||
timeouts: null
|
||||
module.agent_engine.time_sleep.wait_5_minutes:
|
||||
create_duration: 5m
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Google LLC
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -32,7 +32,7 @@ values:
|
||||
- entrypoint_module: agent
|
||||
entrypoint_object: agent
|
||||
requirements_file: requirements.txt
|
||||
version: '3.12'
|
||||
version: '3.13'
|
||||
timeouts: null
|
||||
module.agent_engine.time_sleep.wait_5_minutes:
|
||||
create_duration: 5m
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Google LLC
|
||||
# Copyright 2026 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -57,7 +57,7 @@ values:
|
||||
- entrypoint_module: agent
|
||||
entrypoint_object: agent
|
||||
requirements_file: requirements.txt
|
||||
version: '3.12'
|
||||
version: '3.13'
|
||||
timeouts: null
|
||||
module.agent_engine.time_sleep.wait_5_minutes:
|
||||
create_duration: 5m
|
||||
|
||||
Reference in New Issue
Block a user