wing icon indicating copy to clipboard operation
wing copied to clipboard

`aws.xxxRef` Resources Creates Unneeded TF Resources For `tf-aws`

Open hasanaburayyan opened this issue 1 year ago • 4 comments

I tried this:

bring aws;

new aws.BucketRef("blah");

wing compile -t tf-aws

THEN

tf apply

This happened:

~40 some resources are going to be made image

I expected this:

No resources

Is there a workaround?

No response

Anything else?

I think this is because the ui fields we add for interacting with Refs in the simulator, and they are being turned into lambda functions in AWS

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.

hasanaburayyan avatar Apr 30 '24 14:04 hasanaburayyan

Oh, seems like this is the resources used for the ui elements, no @Chriscbr ?

eladb avatar May 01 '24 20:05 eladb

Oh, seems like this is the resources used for the ui elements, no @Chriscbr ?

Yup 👍

Perhaps for now we can disable the ui elements from creating various child resources when you're compiling to non-sim targets, since Wing Console only works with simulated apps at the moment. ie

if app.target != "sim" {
  // existing logic
}

Chriscbr avatar May 01 '24 21:05 Chriscbr

👍

eladb avatar May 01 '24 21:05 eladb

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] avatar Aug 08 '24 06:08 github-actions[bot]

Congrats! :rocket: This was released in Wing 0.82.5.

monadabot avatar Aug 12 '24 22:08 monadabot