Aws-toolkit-jetbrains: AWS Profiles Ignored Because It Was Not Alphanumeric with Dashes or Underscores

Created on 1 Dec 2018  路  4Comments  路  Source: aws/aws-toolkit-jetbrains

When selecting "AWS Connection Settings" menu from Status Bar and "All Credentials" sub-menu item, only partial list of profiles is displayed. This appears to be an issue with the profile name. Profiles that contain only alphanumeric, dashes, and underscores seem to display properly. In my case the majority of my profiles contain a period (.) in the name, and non of these profiles get displayed on the sub-menu.

To reproduce
On the Status Bar select the AWS Connection Settings menu item
Next select "All Credentials" sub-menu
(some profiles missing at this point)

Expected behavior
All AWS Profiles should display when selecting the "All Credentials" item

Your Environment

  • OS: Windows 10 Enterprise 2016 LTSB
  • JetBrains' Product: PyCharm Professional
  • JetBrains' Product Version: 2018.3
  • Toolkit Version: v1.0

Additional context - Log snippet of failure
```
2018-11-30 15:36:33,116 [18601251] INFO - plots.PySciEnvironmentProvider - Plots on port: 57201
2018-11-30 15:36:33,131 [18601266] INFO - plugins.remotesdk.RemoteUpload - Uploading helpers to /home/ansible/.pycharm_helpers
2018-11-30 15:36:33,832 [18601967] INFO - plugins.remotesdk.RemoteUpload - Remote helpers version is PY-183.4284.139, local helpers version is PY-183.4284.139
2018-11-30 15:41:44,881 [18913016] INFO - plots.PySciEnvironmentProvider - Plots on port: 57201
2018-11-30 15:41:44,881 [18913016] INFO - plugins.remotesdk.RemoteUpload - Uploading helpers to /home/ansible/.pycharm_helpers
2018-11-30 15:41:45,498 [18913633] INFO - plugins.remotesdk.RemoteUpload - Remote helpers version is PY-183.4284.139, local helpers version is PY-183.4284.139
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'aaaaaaaaaaaaaaaaaaa-foozzzz-ffff.lllll' on line 14 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'bbbbbbbbbbbb-foozzzz-ffff.lllll' on line 20 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'cccccccccccc-zzzz-ffff.lllll' on line 26 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'dddddddd-zzzzxx-ffff.lllll' on line 40 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'dddddddd-zzzzxx-aaa.bbb.ccc' on line 46 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'eeeeeeeeee-foozzzz-ffff.lllll' on line 51 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'eeeeeeeeee-zzzz-ffff.lllll' on line 56 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'fffff-ffff.lllll' on line 61 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'gggggggggg-zzzz-aaa.bbbbbbbb' on line 73 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'gggggggggg-foozzzz-aaa.bbbbbbbb' on line 77 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'hhhhhhhhhhhh-zzzz-aaa.bbbbbbbb' on line 81 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'hhhhhhhhhhhh-foozzzz-aaa.bbbbbbbb' on line 85 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'iiiiiiii-zzzz-aaa.bbbbbbbb' on line 89 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'jjjjjjjjjj-zzzz-aaa.bbb.ccc' on line 98 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'jjjjjjjjjj-foozzzz-aaa.bbb.ccc' on line 102 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'kkkkkkkkkkkk-zzzz-aaa.bbb.ccc' on line 106 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'kkkkkkkkkkkk-foozzzz-aaa.bbb.ccc' on line 110 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'llllllll-zzzz-aaa.bbb.ccc' on line 114 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'mmmmm-ffff.lllll' on line 5 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'nn-nnnnnnnn-ffff.lllll' on line 13 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:51:35,774 [19503909] WARN - les.internal.ProfileFileReader - Ignoring profile 'oooooooo-zzzzqa-ffff.lllll' on line 17 because it was not alphanumeric with dashes or underscores.
2018-11-30 15:53:16,003 [19604138] INFO - .script.IdeScriptEngineManager - javax.script.ScriptEngineManager initialized in 84 ms
2018-11-30 15:55:10,447 [19718582] INFO - plugins.remotesdk.RemoteUpload - Uploading helpers to /home/ansible/.pycharm_helpers
2018-11-30 16:08:23,015 [20511150] INFO - plots.PySciEnvironmentProvider - Plots on port: 57201
2018-11-30 16:08:23,015 [20511150] INFO - plugins.remotesdk.RemoteUpload - Uploading helpers to /home/ansible/.pycharm_helpers
2018-11-30 16:08:23,662 [20511797] INFO - plugins.remotesdk.RemoteUpload - Remote helpers version is PY-183.4284.139, local helpers version is PY-183.4284.139
2018-11-30 18:14:23,829 [28071964] INFO - com.pty4j.util.ExtractedNative - Extracted pty4j native in 85 ms
2018-11-30 18:14:25,347 [28073482] INFO - plots.PySciEnvironmentProvider - Plots on port: 57201
2018-11-30 18:14:25,378 [28073513] INFO - plugins.remotesdk.RemoteUpload - Uploading helpers to /home/ansible/.pycharm_helpers
2018-11-30 18:14:26,233 [28074368] INFO - plugins.remotesdk.RemoteUpload - Remote helpers version is PY-183.4284.139, local helpers version is PY-183.4284.139
2018-11-30 18:16:27,706 [28195841] WARN - n.process.BaseOSProcessHandler - Process hasn't generated any output for a long time.

blocked bug

All 4 comments

The Java SDK does the filtering. There was talk of altering the loading here: to allow for .: https://github.com/aws/aws-sdk-java-v2/issues/389

It's hard to figure out what's gone wrong when all your profiles have . in them. Can this be workedaround in the toolkit?

I will have to see if fixing #1010 would improve the message around the ..

Adding support to toolkit is something we would want to avoid since it means forking the SDK.

Fixed in master branch

Was this page helpful?
0 / 5 - 0 ratings