You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When referencing loations that contained unresolved Tokens (
account, region, URL suffix) the synthesizer generated:
{Fn::Sub: { Fn::Join: ... }}
That is not allowed, the first argument to `{Fn::Sub}` must be a string
literal.
This was a problem for all asset types, but the most-used file asset
(`lambda.Code`) would only render `{ bucketName, objectKey }` which
typically don't contain tokens, so you'd only notice when using
Docker image assets.
Fixes#8540.
When referencing loations that contained unresolved Tokens (
account, region, URL suffix) the synthesizer generated:
{Fn::Sub: { Fn::Join: ... }}
That is not allowed, the first argument to `{Fn::Sub}` must be a string
literal.
This was a problem for all asset types, but the most-used file asset
(`lambda.Code`) would only render `{ bucketName, objectKey }` which
typically don't contain tokens, so you'd only notice when using
Docker image assets.
Fixes#8540.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
When using ContainerImage.fromAsset the generated CFN template looks like this:
This is invalid CloudFormation as Join is not valid inside Sub:
E1019 Sub should be a string or array of 2 items for Resources/TaskDef3BF4F22B/Properties/ContainerDefinitions/0/Image/Fn::Sub
The problem might be here https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/core/lib/stack-synthesizers/default-synthesizer.ts#L281 as it creates an
Fn::Sub
containing anFn::Join
which is not valid.@rix0rrr see #3463 (comment)
Reproduction Steps
Use any
ContainerImage.fromAsset
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: