sparse-intern-71089
11/29/2018, 10:12 PMlemon-spoon-91807
11/29/2018, 10:14 PMlemon-spoon-91807
11/29/2018, 10:15 PMlemon-spoon-91807
11/29/2018, 10:15 PMlemon-spoon-91807
11/29/2018, 10:15 PMlemon-spoon-91807
11/29/2018, 10:15 PMlemon-spoon-91807
11/29/2018, 10:15 PMearly-musician-41645
11/29/2018, 10:18 PMonObjectCreated
?
I'm assuming the code would be something like
// Create a lambda
// Create the bucket
// Set up the bucket onObjectCreated
// Trigger the lambda somehow from in here using the... lambda.arn?
lemon-spoon-91807
11/29/2018, 10:19 PMearly-musician-41645
11/29/2018, 10:20 PMlemon-spoon-91807
11/29/2018, 10:20 PMlemon-spoon-91807
11/29/2018, 10:20 PMlemon-spoon-91807
11/29/2018, 10:20 PMonObjectCreated(
name: string, handler: BucketEventHandler,
lemon-spoon-91807
11/29/2018, 10:21 PMlemon-spoon-91807
11/29/2018, 10:21 PMearly-musician-41645
11/29/2018, 10:24 PMevent
pass through as the arg to the handler
? Or, what's the signature for the handler? I'm assuming it takes a single arg.lemon-spoon-91807
11/29/2018, 10:24 PMlemon-spoon-91807
11/29/2018, 10:24 PMlemon-spoon-91807
11/29/2018, 10:25 PMlemon-spoon-91807
11/29/2018, 10:25 PMlemon-spoon-91807
11/29/2018, 10:25 PMlemon-spoon-91807
11/29/2018, 10:25 PMlemon-spoon-91807
11/29/2018, 10:26 PMlemon-spoon-91807
11/29/2018, 10:26 PMlemon-spoon-91807
11/29/2018, 10:27 PMlemon-spoon-91807
11/29/2018, 10:27 PMearly-musician-41645
11/29/2018, 10:27 PMearly-musician-41645
11/29/2018, 10:27 PMlemon-spoon-91807
11/29/2018, 10:27 PMearly-musician-41645
11/29/2018, 10:28 PMlemon-spoon-91807
11/29/2018, 10:28 PMlemon-spoon-91807
11/29/2018, 10:28 PMearly-musician-41645
11/29/2018, 10:29 PMlemon-spoon-91807
11/29/2018, 10:31 PMlemon-spoon-91807
11/29/2018, 10:32 PMearly-musician-41645
11/29/2018, 10:33 PM.get
lemon-spoon-91807
11/29/2018, 10:33 PMearly-musician-41645
11/29/2018, 10:34 PMlemon-spoon-91807
11/29/2018, 10:35 PMearly-musician-41645
11/30/2018, 12:12 AM.get
but the buckets I need are in multiple regions. I tried this with no luck:
const bucket = aws.s3.Bucket.get('prod-us-west-1', 'sdp-tsm-prod-eu1-artifacts', { region: 'us-west-1' });
Diagnostics:
aws:s3:Bucket (prod-us-west-1):
error: Preview failed: refreshing urn:pulumi:s3-object-indexer-dev::s3-object-indexer::aws:s3/bucket:Bucket::prod-us-west-1: error reading S3 Bucket (sdp-tsm-prod-eu1-artifacts): BucketRegionError: incorrect region, the bucket is not in 'us-west-2' region
status code: 301, request id: , host id:
early-musician-41645
11/30/2018, 12:12 AMconfig:
aws:region: us-west-2
Not sure how to specify region otherwiselemon-spoon-91807
11/30/2018, 1:35 AMlemon-spoon-91807
11/30/2018, 1:37 AMmicroscopic-florist-22719
microscopic-florist-22719
lemon-spoon-91807
11/30/2018, 1:38 AMlemon-spoon-91807
11/30/2018, 1:38 AMlemon-spoon-91807
11/30/2018, 1:39 AMmicroscopic-florist-22719
early-musician-41645
11/30/2018, 4:59 AM