This message was deleted.
# aws
s
This message was deleted.
l
If you want to manage a resource that already exists, you need to import it into Pulumi. This code doesn't import any buckets. You would need to run
pulumi import
or add the
import
opt, and you almost certainly wouldn't do it in a loop.
b
thanks for replying the bucket is already being managed by pulumi please let me know how could I achieve blockpubic acess on bucket
l
Your code above should do it. You may want to add the
restrictPublicBuckets
and
ignorePublicAcls
properties, too.