Skip to content

Running aztfexport from docker container throws an error #638

@SivakumarShan

Description

@SivakumarShan

I've successfully installed the aztfexport in a docker container and I'm trying to export the terraform configuration using the aztfexport command and I'm getting the below error.

Error: error running terraform init for the output directory: exit status 1

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider
hashicorp/azurerm: no available releases match the given constraints 4.33.0

aztfexport res --append -n /subscriptions/<>/resourceGroups/<>/providers/Microsoft.Web/sites/aztfexport-appservice

I've also enabled the HTTPS_PROXY but no luck.

The same command is working perfectly fine in my local machine. I'm able to generate the terraform configuration file.

Can anyone help what I;m missing here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions