awslabs / harmonix

A developer portal to meet your Enterprise needs. Fast, secure, and at-scale.
https://harmonixonaws.io/
Apache License 2.0
211 stars 42 forks source link

Terraform #24

Closed jrwpatterson closed 1 year ago

jrwpatterson commented 1 year ago

Hi it's corporate policy to use terraform in our deployments.

All your code requires stacks any chance there is a way to run this without the stack requirement?

acwatson commented 1 year ago

jrwpatterson - Thanks for your feedback. Deployment of our solution using Terraform is something we will consider for the future. We can't prioritize it in the short-term though, as we are currently focused on adding what we believe to be critical features to our solution.

You could convert the existing solution by deploying the cdk to a new temporary account and then running a tool to export existing resources from AWS to Terraform files. You could then use those Terraform configs for your real accounts.

Here is an example tool that you could consider trying that claims to export from AWS to Terraform: https://github.com/aws-samples/aws2tf

jrwpatterson commented 1 year ago

Sorry what I meant to say is when doing the annotations its looking for a stack but if we are just using a terra then that doesn't really work or am I wrong...

acwatson commented 1 year ago

I believe that only the serverless REST API application template uses the stack name from the annotations. If you are not using that application template specifically, you should be fine.

z-sourcecode commented 1 year ago

Hi @jrwpatterson We have released v0.2.1 of OPA on AWS plugins. We also have a complete terraform example in the code. Soon we will be releasing a youtube video dedicated to terraform provisioning.

https://github.com/awslabs/app-development-for-backstage-io-on-aws/tree/main/backstage-reference/common/tf_aws_ecs

https://github.com/awslabs/app-development-for-backstage-io-on-aws/tree/main/backstage-reference/templates/example-tf-nodejs

Thanks.