1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
0
Hello
By reviewing the GitHub issue and the code snippet provided, it appears there may be issues in the steps followed for the accepted solutions.
So, can you try the following approach described in the issue:
Excluding cdk.out in asset object instead of cdk
`: image = ecr_assets.DockerImageAsset(self, 'DeployDockerImage',
..
exclude=['cdk.out'] // you are excluding cdk
)`
Alternative, the most popular solution suggests:
- )added cdk* to .dockerignore to get it working (which you have already done)
- ) making sure check cdk.json, it should contain:
{
"context": {
"@aws-cdk/aws-ecr-assets:dockerIgnoreSupport": true
}
}
If not specified as true .dockerignore is ignored
respondido hace un año
Contenido relevante
- ¿Cómo puedo hacer una llamada al SDK de AWS desde un proyecto de CDK mediante la interfaz AWSdkCall?OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 2 años
I cannot add { "context": { "@aws-cdk/aws-ecr-assets:dockerIgnoreSupport": true } } to my cdk.json file as it causes the following error:
Error: Unsupported feature flag '@aws-cdk/aws-ecr-assets:dockerIgnoreSupport'. This flag existed on CDKv1 but has been removed in CDKv2. CDK will now behave as the same as when the flag is enabled.