Skip to content

Deploying a function to multiple accounts response with Environment not found. #162

Open
@josh08h

Description

@josh08h

Background:
I have 3 Twilio accounts setup (Staging/Pre-Prod/Prod) and I am attempting to deploy a function into all three environments.

Issue:
I am seeing the following error when attempting to deploy a function to a Twilio account that is different to the details specified in the .twilio_functions file:

✖ Failed Deployment

│ ERROR Failed API Request 20404
│
│ The requested resource /Services/ZS7b2bbccc6ccd5493c67661868ce2e29a/Environments was not found
│
│ More info: https://www.twilio.com/docs/errors/20404

If the .twilio_functions file is empty and I deploy my function to Staging then it deploys successfully, creates the environment and amends the .twilio_functions file. If I then attempt to deploy the function to Pre-Prod it attempts to use the environment now stored in .twilio_functions which does not exist.

Is there any guidance on this? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions