This message was deleted.
# cloudengineering-support
s
This message was deleted.
e
@here
any suggestions?
w
You need to use
.apply()
(https://www.pulumi.com/docs/intro/concepts/programming-model/#apply) Here is a simple example that hopefully helps:
Copy code
# Create an AWS resource (S3 Bucket)
bucket = s3.Bucket('my-bucket')
bucket_name_array = bucket.id.apply(
    lambda id: id.split("-")
)
pulumi.export('bucket_name', bucket.id)
pulumi.export('name_array', bucket_name_array)
1