https://pulumi.com logo
#python
Title
# python
b

bulky-oil-16941

03/29/2023, 10:44 AM
Hello Everyone. I am trying to use GCP cloud deploy to deploy on Cloud Run . I see the sample code here: https://www.pulumi.com/registry/packages/gcp/api-docs/clouddeploy/target/ I am bit confused about how do we actually pass on the image name for Cloud Run? Any help is highly appreciated.
Copy code
primary = gcp.clouddeploy.Target("primary",
    location="us-west1",
    annotations={
        "my_first_annotation": "example-annotation-1",
        "my_second_annotation": "example-annotation-2",
    },
    description="basic description",
    execution_configs=[gcp.clouddeploy.TargetExecutionConfigArgs(
        usages=[
            "RENDER",
            "DEPLOY",
        ],
        execution_timeout="3600s",
    )],
    labels={
        "my_first_label": "example-label-1",
        "my_second_label": "example-label-2",
    },
    project="my-project-name",
    require_approval=False,
    run=gcp.clouddeploy.TargetRunArgs(
        location="projects/my-project-name/locations/us-west1",
    ),
    opts=pulumi.ResourceOptions(provider=google_beta))
5 Views