-
I am trying to use a container registry located in a different account. I have set When performing a
So Cloudformation is trying to find a repository and image that does not exist in account A |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I eventually came to a workaround. I could find no way to change the account number for the ImageUri field. Looks like it takes it from the account details passed in the The only way around this was to use the lower level CfnFunction resource instead of DockerImageFunction. I created the docker asset separately and constructed the desired imageUri field. In the future this could be included in an internal construct or synthesizer but for now it is a reasonable approach
|
Beta Was this translation helpful? Give feedback.
-
Sounds like a bug, consider opening an issue |
Beta Was this translation helpful? Give feedback.
I eventually came to a workaround.
I could find no way to change the account number for the ImageUri field. Looks like it takes it from the account details passed in the
env
dict when instantiating the stack.The only way around this was to use the lower level CfnFunction resource instead of DockerImageFunction. I created the docker asset separately and constructed the desired imageUri field. In the future this could be included in an internal construct or synthesizer but for now it is a reasonable approach