KozhanovDmytro / localstack-intellij-idea-plugin-public

0 stars 0 forks source link

Where to configure #1

Closed thoefkens closed 7 months ago

thoefkens commented 7 months ago

Hi Dmytro,

Where can I configure the Localstack settings? I have it running at the default address / port - with awslocal I can e.g. list running queues, but in the plugin I do not see them.

Btw my region is an eu- one.

image

Thanks Thomas

KozhanovDmytro commented 7 months ago

Hi Thomas,

Please follow these steps to configure the URL address, ports, etc.:

  1. Go to File -> Settings,
  2. On the left side, select Tools and then choose LocalStack Plugin Settings.
  3. Here, you can change the URL, Region, Access Keys, Secret Keys, and other configurations.
  4. Please restart your IDE and enjoy :)

image

Let me know if you have any questions.

Cheers, Dmytro

thoefkens commented 7 months ago

Hi Dmytro,

Great, thanks for the quick pointer!

  1. Would be great if you add that to the docs / readme ;).
  2. Still does not work though, but perhaps I missed something again: image

An AWS SQS list queues command works, with my profile pointing to

image

Thanks Thomas

KozhanovDmytro commented 7 months ago

Certainly! Please restart your IDE. This step is necessary for the plugin to pick up and apply the new configs.

thoefkens commented 7 months ago

Yes, I did do that.. but now the error / warning appears saying sqs.eu-central-1.localhost.localstack.cloud is unreachable. Please note I just have Localstack installed on my Mac, up and running - no Localstack cloud involved.

thoefkens commented 7 months ago

@KozhanovDmytro Should I create a hosts entry to workaround this problem?

KozhanovDmytro commented 7 months ago

I don't think so, I'll check this issue later and let you know

KozhanovDmytro commented 7 months ago

@thoefkens, could you please share the plugin settings?

and just want to clarify.. you mention this aws profile works for you, am I correct? image did you try just putting http://localhost:4566 as URL address?

thoefkens commented 7 months ago

Yes, exactly. I can also fetch queues etc. using --profile local stack.

These are the plugin settings image

I did not specify localstack.cloud anywhere...

thoefkens commented 7 months ago

@KozhanovDmytro Should I wait for a small fix, perhaps?

KozhanovDmytro commented 7 months ago

@thoefkens still not sure what cause that issue.

I tried to reproduce with 3.1.1 but it works fine on my Windows machine. I guess that the problem may be that Localstack is doing a redirect from localhost to sqs.eu-central-1.localhost.localstack.cloud. Looks weird.

This is my Localstack info:

LocalStack version: 3.1.1.dev
LocalStack Docker container id: d3fd89800c52
LocalStack build date: 2024-02-27
LocalStack build git hash: e03147cd4

Could you please share your LocalStack version?

thoefkens commented 7 months ago

Hi @KozhanovDmytro

My version is 3.2.0 I am using LocalStack on macOS Sonoma.

Thank you Thomas

KozhanovDmytro commented 7 months ago

Hi @thoefkens.

Thank you for the additional information. Here are some updates regarding the issue:

  1. I've tested the plugin on macOS with version 3.2.1.dev, and everything works as expected. The details are as follows:
    LocalStack version: 3.2.1.dev
    LocalStack build date: 2024-03-22
    LocalStack build git hash: 185ec334f`
  2. I've also uploaded a new version, 2024.1.5, with a potential fix and added logging. This build will be available for download after JetBrains completes its usual review process, so it should be available to you within the next two business days.
  3. Additionally, I wanted to clarify that the plugin does not generate domains such as sqs.eu-central-1.localhost.localstack.cloud internally. Looks like this behavior is coming from LocalStack itself.

It seems more likely that the issue lies or with your local setup or possibly a bug in LocalStack. Could you please try updating LocalStack on your local machine to version 3.2.1, which is available now?

Thanks, Dmytro

thoefkens commented 7 months ago

Hi Dmytro,

I found out this is related to running LocalStack on MacOS. One needs to add 127.0.0.1 as a DNS server, so that localstack.cloudhttp://localstack.cloud/ addresses can be resolved, These are the default endpoints LocalStack / LocalStack Desktop work with. After resolving that networking issue, the plugin also worked fine.

Thanks for your support! Just thought it would be good to let you know in case some other (plugin) users stumble into this issue in the future.

Best regards, Thomas

Thomas Hoefkens @.**@.> Tel. +49 173 575 40 10

On Sun, Mar 24, 2024 at 8:06 PM, KozhanovDmytro @.**@.>> wrote:

Hi @thoefkenshttps://github.com/thoefkens.

Thank you for the additional information. Here are some updates regarding the issue:

  1. I've tested the plugin on macOS with version 3.2.1.devhttp://3.2.1.dev/, and everything works as expected. The details are as follows:

LocalStack version: 3.2.1.devhttp://3.2.1.dev/ LocalStack build date: 2024-03-22 LocalStack build git hash: 185ec334f`

  1. I've also uploaded a new version, 2024.1.5, with a potential fix and added logging. This build will be available for download after JetBrains completes its usual review process, so it should be available to you within the next two business days.
  2. Additionally, I wanted to clarify that the plugin does not generate domains such as sqs.eu-central-1.localhost.localstack.cloudhttp://sqs.eu-central-1.localhost.localstack.cloud/ internally. Looks like this behavior is coming from LocalStack itself.

It seems more likely that the issue lies or with your local setup or possibly a bug in LocalStack. Could you please try updating LocalStack on your local machine to version 3.2.1, which is available now?

Thanks, Dmytro

— Reply to this email directly, view it on GitHubhttps://github.com/KozhanovDmytro/localstack-intellij-idea-plugin-public/issues/1#issuecomment-2016909527, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXLRBJVP4PB3LCJCCU2B23DYZ4P3ZAVCNFSM6AAAAABE4HTCB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWHEYDSNJSG4. You are receiving this because you were mentioned.Message ID: @.***>

KozhanovDmytro commented 7 months ago

Hi Thomas

Thank you for your effort for resolving this issue! Will close this ticket then. I've updated the documentation and added your case in troubleshooting section.

If you have any additional comments, improvements or even feature you would like to see in the plugin, please feel free to contact me kozhanov.dmytro@gmail.com or leave a feedback in the plugin Tools -> LocalStack -> Feedback.

Have a nice weekend!

Best regards, Dmytro