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

Error running environment:new: Cannot read properties of undefined (reading 'environmentName') #35

Open
JuanSanabria-SEAQ opened this issue Jun 16, 2023 · 2 comments

Comments

@JuanSanabria-SEAQ
Copy link

I am communicating today by this means since I am doing the integration of IaC based on the documentation:
https://www.twilio.com/blog/intro-to-infrastructure-as-code-with-twilio-part-2
Since part 1 can be executed without any problem.
However when creating the new environment as a test I get the error attached in the image.

I would like to know how I can solve this error and continue with the integration process.

Thank you very much I will be attentive to any comment.

imagen_2023-06-16_115617488

@diegozav-lendable
Copy link

The same happens to me, I'm following this tutorial: https://www.twilio.com/blog/intro-to-infrastructure-as-code-with-twilio-part-1

Screenshot 2023-07-07 at 17 23 44

@stevenbdf
Copy link

The same happens to me, I'm following this tutorial: https://www.twilio.com/blog/intro-to-infrastructure-as-code-with-twilio-part-1

Screenshot 2023-07-07 at 17 23 44

The tutorial is great. But this twilio plugin has outdated dependencies, that is why your Twilio profile is not being identified. I have used this fork https://github.com/rg-pionix/plugin-twilio-cli-infrastructure from @rg-pionix. You must follow the next steps:

  1. Clone the repository https://github.com/rg-pionix/plugin-twilio-cli-infrastructure
  2. cd plugin-twilio-cli-infrastructure
  3. npm install
  4. Run pwd to get the absolute path of your current directory. It should be something like /Volumes/StevenExternalHD/telesalud/plugin-twilio-cli-infrastructure
  5. Run twilio plugins:link <absolute_path_from_step_4>
  6. Now, your commands should work fine and read the twilio profiles. You can check by running twilio iac:environment:get

Important! In the fork, the plugin command has been renamed form infra to iac so make sure you take that into account

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

No branches or pull requests

3 participants