https://pulumi.com logo
#general
Title
# general
b

bitter-insurance-72016

07/05/2023, 11:07 PM
Hello everyone, I am new to pulumi. I am trying to build and push a docker image to ECR and run it using ECS so that it automatically builds only when there is changes in the code.
b

billowy-army-68599

07/05/2023, 11:08 PM
this is a very broad scope, what do you have so far?
b

bitter-insurance-72016

07/05/2023, 11:15 PM
I am always getting errors with the 'import pulumi_docker as docker'. Pulumi up seems not to read it
b

billowy-army-68599

07/06/2023, 12:53 AM
what error do you get?
b

bitter-insurance-72016

07/06/2023, 7:38 AM
error: Program failed with an unhandled exception: Traceback (most recent call last): File "C:\Users\USER\Downloads\cogito\__main__.py", line 4, in <module> import pulumi_docker as docker ModuleNotFoundError: No module named 'pulumi_docker'
That's the error message
m

many-telephone-49025

07/06/2023, 7:58 AM
Did you add the docker provider to your requirements.txt?
b

bitter-insurance-72016

07/06/2023, 9:33 AM
No I didn't....please how do I add it?
m

many-telephone-49025

07/06/2023, 10:19 AM
open the requirements.txt in your project and ``pulumi-docker>=4.3.0` to it
b

bitter-insurance-72016

07/06/2023, 10:22 AM
Ok...thank you
m

many-telephone-49025

07/06/2023, 10:36 AM
you may need to run pip install -r requirements.txt
b

bitter-insurance-72016

07/06/2023, 10:43 AM
Ok... thanks