CloudFormation parameter overrides and logRetention issues #8519
Labels
@aws-cdk/aws-codepipeline
Related to AWS CodePipeline
@aws-cdk/aws-lambda
Related to AWS Lambda
guidance
Question that needs advice or information.
needs-triage
This issue or PR still needs to be triaged.
❓ General Issue
The Question
I deploy CloudFormation changesets created with CDK from CodePipeline. I use
parameterOverrides
to achieve this:In the actual stack I get the lambda code parameters like this:
This all works fine in the standard case. However, when setting
logRetention
on a lambda in the stack, CDK creates a Lambda which usesAsset
and hence our stack becomes dependent on info about the logRetention lambda code location - e.g.,S3Bucket
andS3VersionKey
. These do not exist when deploying with CloudFormation.So either I need to be able to get hold of these parameters from the
logRetention
lambda code, or use some other escape hatch.I appreciate any thoughts on how to be able to use
logRetention
withparameterOverrides
.Environment
Other information
The text was updated successfully, but these errors were encountered: