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
trying to pass the ECR repository name defined in a Repository object to the DockerImageAsset repository_name attribute and receiving an error upon deployment:
Expected params.repositoryNames[0] to be a string
i'm using the inherited ecr.Repository.repository_name attribute, which should be a string, to pass to the DockerImageAsset but it says that it's not?
my-stack-cdk-1: deploying...
❌ my-stack-cdk-1 failed: InvalidParameterType: Expected params.repositoryNames[0] to be a string
Expected params.repositoryNames[0] to be a string
Environment
CDK CLI Version: 1.5.0
Module Version: 1.5.0
OS: Amazon Linux 2
Language: Python
Other information
CDK is awesome! keep up the good work!
The text was updated successfully, but these errors were encountered:
Your intended scenario wouldn't be supported anyway, since asset processing happens before the repo would be deployed (so you couldn't refer to it in this way).
repository_name needs to be a literal string, and the repository would be created outside of a CloudFormation stack.
🐛 Bug Report
What is the problem?
trying to pass the ECR repository name defined in a Repository object to the DockerImageAsset repository_name attribute and receiving an error upon deployment:
i'm using the inherited ecr.Repository.repository_name attribute, which should be a string, to pass to the DockerImageAsset but it says that it's not?
Reproduction Steps
$ cdk deploy
Verbose Log
Environment
Other information
CDK is awesome! keep up the good work!
The text was updated successfully, but these errors were encountered: