Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edgerc option not working for cloudlets #185

Open
vijayendran18 opened this issue Oct 30, 2023 · 3 comments
Open

Edgerc option not working for cloudlets #185

vijayendran18 opened this issue Oct 30, 2023 · 3 comments

Comments

@vijayendran18
Copy link

vijayendran18 commented Oct 30, 2023

I'am facing issue when I run the cloudlets commends with edgec option (To locate the config file).

image

But --edgerc working fine for property manager cli commends.

@vijayendran18 vijayendran18 changed the title edgerc option not working for cloudlets Edgerc option not working for cloudlets Oct 30, 2023
@dawiddzhafarov
Copy link
Contributor

Hi @vijayendran18, thank you for opening the issue.

It seems like you are using incorrect order of global flags. The command you're trying to execute should be:
.\akamai-v1.5.5-windowsamd64.exe cloudlets --edgerc <your edgerc path> retrieve --policy <your policy name>.
Let me know if the error you're seeing is solved with this command.

You can also use help command to find out more, i.e, .\akamai-v1.5.5-windowsamd64.exe help.

With regards,
Dawid

@vijayendran18
Copy link
Author

Hi @dawiddzhafarov ,
Yeh now its working fine. Thank for you valuable help.

I need one more help, without passing the --edgerc option, Can I pass the secrets like the below option.
--host , --access_token, --client_token , --client_secret

  • Vijayendran R

@dawiddzhafarov
Copy link
Contributor

It is not available to pass the credentials like this as they are clearly visible while using such command. You can store them in a file (edgerc) and if you want to use different ones, you can create a different section in the same edgerc file. Such file could look like this:

[section1]
host = <host1>
access_token = <access_token1>
client_token = <client_token1>
client_secret = <client_secret1>

[section2]
host = <host2>
access_token = <access_token2>
client_token = <client_token2>
client_secret = <client_secret2>

With such configuration, while executing command you can use: akamai cloudlets --edgerc <your edgerc path> --section <your section name> ...<rest of command>, where <your section name> would be section1 or section2.

You can always refer to README or use akamai.exe help command to find out more.

With regards,
Dawid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants