This message was deleted.
# python
s
This message was deleted.
g
c
Copy code
bucket.arn.apply(lambda v:

  s3_client = boto3.client("s3")
  response =    s3_client.list_objects_v2(Bucket=v)

  for obj in response.get("Contents", []):
      print(obj["Key"])
)
Somehitng like this should be
g
@clever-kite-79772 syntax error.
c
@great-spring-37193 I know about syntax error - it's just the general idea. If you'd like to use boto3 + pulumi, than you have to use all boto3 code within lamda.
g
Thanks but want to take that response outside that lambda but pulumi providing only Output[T].
c
You can't get response outside lambda. Pulumi doesn't provide it.