What is repository id in aws_ecr » Repository constructor? #20645
-
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.Repository.html here is the example in above docs page import * as ecr from 'aws-cdk-lib/aws-ecr';
new apprunner.Service(this, 'Service', {
source: apprunner.Source.fromEcr({
imageConfiguration: { port: 80 },
repository: ecr.Repository.fromRepositoryName(this, 'NginxRepository', 'nginx'),
tagOrDigest: 'latest',
}),
}); in Python aws_sdk, the (method) from_repository_name: (scope: Construct, id: str, repository_name: str) -> IRepository both but in above example, only I just recently got into AWS, sorry if I'm missing something obvious. any tips would be appreciated! edited: found there's another Python version document https://docs.aws.amazon.com/cdk/api/v2/python/aws_cdk.aws_ecr/Repository.html import aws_cdk.aws_ecr as ecr
apprunner.Service(self, "Service",
source=apprunner.Source.from_ecr(
image_configuration=apprunner.ImageConfiguration(port=80),
repository=ecr.Repository.from_repository_name(self, "NginxRepository", "nginx"),
tag_or_digest="latest"
)
) but this one still doesn't provide any useful information about this |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Okay, Just got anwser from Slack, Big thanks to mrgrain. I've left his answer here for someone who has same question as me (or...just me, maybe 🤨)
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Okay, Just got anwser from Slack, Big thanks to mrgrain.
I've left his answer here for someone who has same question as me (or...just me, maybe 🤨)