cdklabs / cdk-ecr-deployment

A CDK construct to deploy docker image to Amazon ECR
Apache License 2.0
159 stars 31 forks source link

Not able to import cdk_ecr_deployment #100

Closed geetikatalreja closed 3 years ago

geetikatalreja commented 3 years ago

I am using python for my CDK project. I want to use this project. I am not able to import cdk_ecr_deployment I have also installed "avishayil-cdk.ecr-deployment==0.0.0", but I am getting Module not found error. from aws_cdk import aws_ecr_assets as ecr_assets, aws_ecr as ecr

import os
import enum
#from site_libraries import cdk-ecr-deployment as ecrdeploy
#import cdk_ecr_deployment as ecrdeploy
from avishayil_cdk import ecr_deployment

below is the error: File "c:\ecr_stack.py", line 7, in <module> from avishayil_cdk import ecr_deployment ModuleNotFoundError: No module named 'avishayil_cdk'

Please guide how I can use this module.

wchaws commented 3 years ago

cdk-ecr-deployment hasn't officially release python package yet.

geetikatalreja commented 3 years ago

it means I can not use it for aws-cdk python project. if there is any way to use it please let me know. I just want to create ECR repo and upload images in it with image tags.

mploski commented 3 years ago

@wchaws Is there any progress with this topic? I found https://pypi.org/project/avishayil-cdk.ecr-deployment/ - I guess this is exactly same package OP used. Are you involved in this package development as well?

wchaws commented 3 years ago

@mploski In short, no. And I'm not involved in https://pypi.org/project/avishayil-cdk.ecr-deployment/

eladb commented 3 years ago

@wchaws do you need help publishing to pypi? It should be straightforward. Just add publishToPyPi setting to your project with the package name and add TWINE_USERNAME and TWINE_PASSWORD secrets to the repo.

Something like this:

{
  publishToPyPi: {
    distName: 'cdk-ecr-deployment',
    module: 'cdk_ecr_deployment'
  }
}
wchaws commented 3 years ago

@mploski Python package is published https://pypi.org/project/cdk-ecr-deployment/#description