many-house-85254
10/30/2023, 9:12 PMlittle-cartoon-10569
10/30/2023, 9:15 PMmany-house-85254
10/30/2023, 9:16 PMlittle-cartoon-10569
10/30/2023, 9:17 PMnew Function("foo", { name: "foo"});
Or whatever syntax applies to your chosen language.many-house-85254
10/30/2023, 9:21 PMTypeError: Function._internal_init() got multiple values for argument 'opts'.
little-cartoon-10569
10/30/2023, 9:23 PMmany-house-85254
10/30/2023, 9:25 PMfrom pulumi_gcp.cloudfunctions import Function
Function(name, {"name": name},
runtime=runtime,
region=region,
source_archive_bucket=source_bucket.name,
source_archive_object=bucket_archive.name,
entry_point="foo",
trigger_http=True,
opts=opts )
invoker = FunctionIamMember(f"{name}-invoker",
project=function.project,
region=function.region,
cloud_function=function.name,
role=role,
member="allUsers")
export(f'lambda-{name}-url', function.https_trigger_url)
little-cartoon-10569
10/30/2023, 9:26 PM{"name": name},
as the 2nd parameter, and add name=name,
to the correct existing 2nd parametter.many-house-85254
10/30/2023, 9:27 PMlittle-cartoon-10569
10/30/2023, 9:28 PMmany-house-85254
10/30/2023, 9:30 PMlambda.url
and not worry about any of this mess.little-cartoon-10569
10/30/2023, 9:30 PMmany-house-85254
10/30/2023, 9:31 PMpulumi update
. The challenge is converting the Output<T> to str. I thought this is not possible because Output<T> means the value will be known in future?little-cartoon-10569
10/30/2023, 9:33 PMmany-house-85254
10/30/2023, 9:34 PMlittle-cartoon-10569
10/30/2023, 9:35 PMmany-house-85254
10/30/2023, 9:36 PMlittle-cartoon-10569
10/30/2023, 9:36 PM