shy-bird-55689
07/03/2024, 11:33 PMartifact_bucket = gcp.storage.Bucket("artifact-bucket",
name="REDACTED",
location="europe-west2",
versioning=gcp.storage.BucketVersioningArgs(
enabled=True,
))
api_auth_archive = gcp.storage.BucketObject(
"api-auth-archive",
name="api_auth_archive.zip",
bucket=artifact_bucket.name,
source=pulumi.AssetArchive({".": pulumi.FileArchive("source/api/auth")}),
)
api_auth = gcp.cloudfunctions.Function(
"api-auth",
name="api-auth",
region="europe-west2",
runtime="python310",
entry_point="get_jwt",
source_archive_bucket=artifact_bucket.name,
source_archive_object=api_auth_archive.name,
trigger_http=True,
https_trigger_security_level="SECURE_ALWAYS",
available_memory_mb=256,
environment_variables={"ENV": env},
)
adventurous-butcher-54166
07/04/2024, 10:20 AMcontent
parameter instead of the source
parameter?
This issue for the native provider might also provide some more insightsshy-bird-55689
07/04/2024, 10:32 AMcloudfunctionsv2
shy-bird-55689
07/04/2024, 10:32 AM