flowaccount / nx-plugins

Nx plugins built by FlowAccount team, helps deploy systems to the cloud
115 stars 34 forks source link

[FEAT] aws-cdk support #29

Open dbartholomae opened 4 years ago

dbartholomae commented 4 years ago

Is your feature request related to a problem? Please describe. I've been working a bit on setting up an aws-cdk builder so I can also manage my infrastructure as code via NX.

Describe the solution you'd like I've now found you nx-aws-cdk builder and schema and would like to avoid double work. What's the status? Do you plan on publishing to npm any time soon?

Describe alternatives you've considered Any way I can help? Otherwise I would most likely work on this on my own, and maybe get some inspiration from your work so far.

Check which provider is affected: [X] AWS [] Azure [] Google Cloud Platform

Check which framework is affected: [] Angular [] Nodejs [] Serverless [] Lambda [X] Infrastructure as a code

wickstargazer commented 4 years ago

Hi,

I have been meaning to test it out on starting up an ec2-instance inside our company. I want to publish it asap but could not find the time to test it out properly so dint want to publish a buggy version!

Would be great if you can help out! 😄

Would you want to test out if the schematics and the runner work? and if not maybe adjust it around a little bit? I am planning to add several more schematics like ECS, S3 static websites, or more advance infra stuff like VPC, Elastic search etc into it as well.

dbartholomae commented 4 years ago

I've played around a bit and currently aim to get it done without a separate builder by using the run-commands builder. I'm currently a bit stuck on a cwd issue: The jest builder runs tests with the main repo as the cwd, not the specific apps folder. This folder needs to contain the cdk.json file, though, and I haven't found a way yet to tell cdk synth where to find it.

wickstargazer commented 4 years ago

@dbartholomae thats where the builder comes in. Inside it is using nx-command but wrapping it around some builders to make sure things work according to what we want and there is a magic 'waitUntilTargetparameter to help us pick what needs to be done first like thejest` command :)

wickstargazer commented 4 years ago

@dbartholomae so, shoudl we work together to publish its first version this week? :)

dbartholomae commented 4 years ago

Unfortunately I'm a bit swamped now :-/

wickstargazer commented 4 years ago

Hi! our team is working through this to get our own infrastructure into nx ... it will be on the branch testing-cdk-build

Let us know if you have any input or ideas, we will be glad to help incorporate it! ...

@beamflowaccount will be the main man looking at it