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

Unable to Use "export-zone" Command with Required <zone> Argument #81

Open
macalac opened this issue Nov 22, 2024 · 1 comment
Open

Comments

@macalac
Copy link

macalac commented Nov 22, 2024

Hi Team,

I’m encountering an issue when using the export-zone command in the Akamai Terraform CLI. Despite providing the <zone> argument as required, I keep getting the following error:

Invalid arguments usage, next arguments are required: <zone>

Command Used:

akamai terraform export-zone --resources existing_zone.com

Expected Behaviour:

The command should generate the json formatted resource import list file.

Observed Behaviour:

The CLI throws an error indicating that the <zone> argument is required, even though it was provided.

Environment Details:

  • Akamai CLI Version: 1.6.0
  • Akamai Terraform CLI Plugin Version: 1.19.0
  • Operating System: macOS 15.1
  • EdgeRC File: Configured with default section (used it before for property import)

Troubleshooting Steps Taken:

  1. Verified that the <zone> argument is correctly provided as a positional argument.
  2. Attempted using various combinations of flags (e.g., --createconfig, --resources) along with the <zone> argument.
  3. Updated Akamai CLI and Terraform plugin to the latest version.
  4. Reviewed the documentation for the export-zone command.

Questions:

  1. Have you come across a similar issue with the export-zone command?
  2. Is there an additional flag or step required that is not mentioned in the documentation?
  3. Could this be a bug in the CLI or the Terraform plugin?

Steps to Reproduce:

  1. Run the following command:
    akamai terraform export-zone existingdomain.com
  2. Observe the error message:
    Invalid arguments usage, next arguments are required: <zone>
    

Any guidance or suggestions to resolve this issue would be greatly appreciated. Thank you for your support!

@mstojanowski
Copy link

Hi @macalac,

Unfortunately I can't reproduce your issue:

mstojano@krk-mpbff cli-terraform % akamai --version
akamai version 1.6.0
mstojano@krk-mpbff cli-terraform % akamai terraform --version
akamai terraform version 1.19.0
mstojano@krk-mpbff cli-terraform % akamai terraform export-zone *********.net
Configuring Zone
Zone configuration completed

What terminal you use? Is it default or custom one?

BR,
Marcin

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