-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ParameterOverrides string can fail CloudFormation character limit #5749
Comments
Hey @lukehedger , thanks for opening the issue. Couple of follow-up questions:
new cpactions.CloudFormationCreateUpdateStackAction({
// ...
parameterOverrides: {
RepoName: new codecommit.Repository(this, 'Repo', {
repositroyName: 'repo'
}).repositoryName,
},
})); But I'm pretty sure using Thanks, |
Hey @skinny85 - thanks for the message. The ask is primarily how do I change the generation of the I am using the parameterOverrides: {
...props.lambdaCode.assign(lambdaBuildOutput.s3Location),
} The output looks something like this: "ParameterOverrides": "{\"LambdaSourceBucketNameParameter00000000\":{\"Fn::GetArtifactAtt\":[\"LambdaBuildOutput\",\"BucketName\"]},\"LambdaSourceObjectKeyParameter00000001\":{\"Fn::GetArtifactAtt\":[\"LambdaBuildOutput\",\"ObjectKey\"]} How would I pass a Token here to force use of Or is the only way to actually get around the 1000 character limit to shorten the keys or split up the Lambdas across multiple stacks? |
Yes. I'm 99% certain using I think the solution you're looking for is this: #1588 (comment) |
Okay thanks @skinny85 I will use this solution. Thanks for your help! |
No problem, let me know if that fixes your issue! |
All fixed, thanks @skinny85! |
It is possible to generate a CloudFormation template with a value in the
CodePipeline.Stages.Actions.Configuration.ParameterOverrides
field that violates the maximum character limit.Reproduction Steps
Error Log
Environment
Other
As a possible solution, it seems the JSON to string transformation performed here could be adapted to make us of the
Fn::Join
function.Looking at the tests it would suggest this is already being done but I have not been able to generate a CFN template that uses
Fn::Join
as asserted here.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: