Hi fellas. Has anyone created an <AWS LayerVersion...
# general
a
Hi fellas. Has anyone created an AWS LayerVersion using the
S3*
attributes instead of
Code
(Archive)? More details in thread
āœ… 1
I'm mapping the attributes as follows: ā€¢
S3Bucket = myBucket.BucketName.Apply(x => $"s3://{x}"),
(already tried with Arn and BucketName. Not sure what docs means by "S3 bucket location") ā€¢
S3Key = myBucketObject.Key,
ā€¢
S3ObjectVersion = myOucketObject.VersionId
Edit: the fix is
S3Bucket = myBucket.BucketName
The only error I get is "Error creating lambda layer: ValidationException: status code: 400"
Any ideas? thanks
l
You may find a corresponding error in CloudWatch?
This looks like C#: does that not provide a pulumi.interpolate operator? Some sort of sugar that avoids having to use Apply()?
a
Can I make pulumi log errors in cloudwatch?
Apply has been working fine with other resources
l
That's not a Pulumi error. That 400 is from Lambda, saying that the API request wasn't valid.
Apply works fine, it's just not pretty šŸ™‚
a
how can I get more details from the error?
Well, apparently Bucket location = Bucket name šŸ¤·ā€ā™‚ļø
l
That's easy šŸ™‚