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

handsome-truck-95168

12/09/2019, 9:24 PM
I'm using pulumi on AWS with TypeScript. I have an existing codebuild job that does some stuff. Ultimately, it uploads artifacts to S3. I'd like to launch that job during deployment using resources (domain names) that have been created/updated. Further, I'd like to use the artifacts produced by the job when creating a CloudFront distribution. Any suggestions on how to launch & obtain results from a codebuild job from a pulumi program?
a

astonishing-cartoon-37000

12/09/2019, 9:26 PM
h

handsome-truck-95168

12/09/2019, 9:32 PM
That helps you define a codebuild project but as far as I can tell it doesn't launch the job or anything.
I see this issue (https://github.com/pulumi/pulumi/issues/99) for runing external commands from a script but it is still open ...
a

astonishing-cartoon-37000

12/09/2019, 9:36 PM
ah, I see. Honestly i'm not familiar with codebuild 😞 .
h

handsome-truck-95168

12/09/2019, 9:36 PM
no worries, thanks for looking 🙂
b

broad-dog-22463

12/09/2019, 10:17 PM
You could look at a dynamic provider as it allows you to specify your own crud actions
An example is here in this blog post
h

handsome-truck-95168

12/09/2019, 11:14 PM
Thanks @broad-dog-22463, that looks useful.