https://pulumi.com logo
#general
Title
# general
a

acceptable-oil-81004

02/03/2022, 1:59 AM
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

little-cartoon-10569

02/03/2022, 2:04 AM
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

acceptable-oil-81004

02/03/2022, 2:06 AM
Can I make pulumi log errors in cloudwatch?
Apply has been working fine with other resources
l

little-cartoon-10569

02/03/2022, 2:06 AM
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

acceptable-oil-81004

02/03/2022, 2:27 AM
how can I get more details from the error?
Well, apparently Bucket location = Bucket name šŸ¤·ā€ā™‚ļø
l

little-cartoon-10569

02/03/2022, 2:52 AM
That's easy šŸ™‚
7 Views