Edits history of script submission #266 for ' List images in ECR (aws_ecr)'

  • python3
    One script reply has been approved by the moderators
    Ap­pro­ved
    import boto3
    
    aws = dict
    
    def main(aws: aws, ecr: str = "windmill-labs/windmill"):
    
        session = boto3.session.Session(
            aws_access_key_id=aws["awsAccessKeyId"], 
            aws_secret_access_key=aws["awsSecretAccessKey"],
            region_name=aws["region"]
        )
    
        client = boto3.client("ecr")
        return client.list_images(
            repositoryName=ecr,
            maxResults=1000,
        )
    
    

    Submitted by adam186 1265 days ago