twilio-infra-as-code / plugin-twilio-infra

Plugin for the Twilio CLI to integrate Pulumi and Twilio in order to create, deploy, and manage Twilio infrastructure using code.
MIT License
1 stars 4 forks source link

Command `infra:preview` fails if using local pulumi storage #1

Closed vernig closed 3 years ago

vernig commented 3 years ago

If you are using local pulumi storage (e.g. pulumi login --local), running the infra:preview command results in the following error:

$ twilio infra:preview --stack dev
error: getting secrets manager: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables

If you run it through the Pulumi CLI directly, this will prompt you for the passphrase:

$ pulumi preview --stack dev
Enter your passphrase to unlock config/secrets
    (set PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE to remember):