in google_cloud_automlops/utils/utils.py [0:0]
def resources_generation_manifest(defaults: dict):
"""Logs urls of generated resources.
Args:
defaults (dict): Contents of the Defaults yaml file (config/defaults.yaml).
"""
logging.info('Please wait for this build job to complete.')
logging.info('\n'
'#################################################################\n'
'# #\n'
'# RESOURCES MANIFEST #\n'
'#---------------------------------------------------------------#\n'
'# Generated resources can be found at the following urls #\n'
'# #\n'
'#################################################################\n')
# pylint: disable=logging-fstring-interpolation
logging.info(
f'''Google Cloud Storage Bucket: https://console.cloud.google.com/storage/{defaults['gcp']['storage_bucket_name']}''')
if defaults['gcp']['artifact_repo_type'] == ArtifactRepository.ARTIFACT_REGISTRY.value:
logging.info(
f'''Artifact Registry: https://console.cloud.google.com/artifacts/docker/{defaults['gcp']['project_id']}/{defaults['gcp']['artifact_repo_location']}/{defaults['gcp']['artifact_repo_name']}''')
logging.info(
f'''Service Accounts: https://console.cloud.google.com/iam-admin/serviceaccounts?project={defaults['gcp']['project_id']}''')
logging.info('APIs: https://console.cloud.google.com/apis')
if defaults['tooling']['deployment_framework'] == Deployer.CLOUDBUILD.value:
logging.info('Cloud Build Jobs: https://console.cloud.google.com/cloud-build/builds')
if defaults['tooling']['orchestration_framework'] == Orchestrator.KFP.value:
logging.info(
'Vertex AI Pipeline Runs: https://console.cloud.google.com/vertex-ai/pipelines/runs')
if defaults['tooling']['use_ci']:
if defaults['tooling']['deployment_framework'] == Deployer.CLOUDBUILD.value:
logging.info('Cloud Build Trigger: https://console.cloud.google.com/cloud-build/triggers')
if defaults['gcp']['pipeline_job_submission_service_type'] == PipelineJobSubmitter.CLOUD_RUN.value:
logging.info(
f'''Pipeline Job Submission Service (Cloud Run): https://console.cloud.google.com/run/detail/{defaults['gcp']['pipeline_job_submission_service_location']}/{defaults['gcp']['pipeline_job_submission_service_name']}''')
elif defaults['gcp']['pipeline_job_submission_service_type'] == PipelineJobSubmitter.CLOUD_FUNCTIONS.value:
logging.info(
f'''Pipeline Job Submission Service (Cloud Functions): https://console.cloud.google.com/functions/details/{defaults['gcp']['pipeline_job_submission_service_location']}/{defaults['gcp']['pipeline_job_submission_service_name']}''')
logging.info(
f'''Pub/Sub Queueing Service Topic: https://console.cloud.google.com/cloudpubsub/topic/detail/{defaults['gcp']['pubsub_topic_name']}''')
logging.info('Pub/Sub Queueing Service Subscriptions: https://console.cloud.google.com/cloudpubsub/subscription/list')
if defaults['gcp']['schedule_pattern'] != DEFAULT_SCHEDULE_PATTERN:
logging.info(
'Cloud Scheduler Job: https://console.cloud.google.com/cloudscheduler')