lcatlett / blt-drush-alias

Acquia BLT plugin to generate Acquia drush aliases
10 stars 8 forks source link

Does this work with BLT 11? #3

Open Elaine-dev opened 4 years ago

Elaine-dev commented 4 years ago

I ran blt aliases (twice) and it said it was writing the files but drush sa says No site aliases found. I should mention I am using the AC free account. Does it work for that?


Gathering site info from Acquia Cloud.
Gathering sites list from Acquia Cloud.
Found 1 sites for environment dev, writing aliases...
Found 1 sites for environment test, writing aliases...
Aliases were written, type 'drush sa' to see them.
➜  itablt10 git:(master) ✗ drush sa
 [success] No site aliases found.
lcatlett commented 4 years ago

@Elaine-dev - this plugin does support Acquia Cloud free. do you have any .yml alias files in your drush/sites/ directory of your BLT project?

Elaine-dev commented 4 years ago

I did have a aliases yml file that I downloaded from Acquia Cloud and I removed them and it still didn't write any file. Is it supposed to create the yml file with all the aliases dynamically?

lcatlett commented 4 years ago

@Elaine-dev - yes the .yml files are created dynamically by this plugin in the drush/sites directory of your BLT project. I'll keep investigating to see if I can reproduce

Elaine-dev commented 4 years ago

Thank you! Another question. I am working with ASCF and it doesn't have an API secret, just a key. Is that something new?

On Thu, May 14, 2020 at 1:20 PM Lindsey Catlett notifications@github.com wrote:

@Elaine-dev https://github.com/Elaine-dev - yes the .yml files are created dynamically by this plugin in the drush/sites directory of your BLT project. I'll keep investigating to see if I can reproduce

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lcatlett/blt-drush-alias/issues/3#issuecomment-628865960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO3WDIVFUQ5SESOGJDISI53RRRG75ANCNFSM4M2XJTQQ .

lcatlett commented 4 years ago

@Elaine-dev - you have to generate the key and secret for ACSF subscriptions the same as you do for Acquia Cloud subscriptions (see https://docs.acquia.com/acquia-cloud/develop/api/auth/#generating-an-api-token) and obtain the ACSF subscription UUID the same way as well (see https://docs.acquia.com/acquia-cloud/manage/applications/#obtaining-your-subscription-s-application-id). The ACSF api information that you access from the Site Factory dashboard is for completely different functionality than the Acquia Cloud API v2.

Elaine-dev commented 4 years ago

Hi Lindsey,

I am having trouble with my UUID for ACSF. I get this error: [error] Unknown exception while connecting to Acquia Cloud: invalid_client Here is the UUID I am using: eddd35-6947-4f41-b661-7b6e833bfbd2 and I tried 30eddd35-6947-4f41-b661-7b6e833bfbd2

I get that by going to my ACSF subscription and looking at the URL. Can you advise why my UUID is not working? I can ssh to the server alright so I don't think it's a connection problem. My UUID did work for regular cloud sites, but not for ACSF.

Thanks!

josephdpurcell commented 4 years ago

I am currently using this command with BLT v11.4.0.

I can confirm that getting an API token is a bit tricky. The token I'm using I got from https://cloud.acquia.com/a/profile/tokens.

Elaine-dev commented 4 years ago

The only way I could get blt aliases command to work was by downloading the drush 9 aliases from the cloud first. I guess this step is required.