
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
plugin-twilio-infra
Advanced tools
Plugin for the Twilio CLI to integrate Pulumi and Twilio in order to create, deploy, and manage Twilio infrastructure using code.
This plugin adds the infra
command to the Twilio CLI. It integrates Pulumi with Twilio and consists of subcommands that let you create, deploy, and manage Twilio infrastructure via code.
To get started with the Pulumi CLI, check out the Download and Install page.
Also, you need a backend storage system to keep your infrastructure state. The options are:
See State and Backends for more details.
For quick testing, you can easily create a free Pulumi account and run pulumi login
to your storage backend.
Via npm
or yarn
:
$ npm install -g twilio-cli
$ yarn global add twilio-cli
Via homebrew
:
$ brew tap twilio/brew && brew install twilio
To get started, run npm install
to install the plugin package dependencies. Afterwards, run the following command:
$ twilio plugins:install plugin-twilio-infra
You can now start using the twilio infra
commands on your machine.
$ twilio infra --help
USAGE
$ twilio infra
...
twilio infra:new
: Creates a new project using Pulumi providertwilio infra:deploy
: Deploys and updates resources described in this directory to a Twilio project. Additional environment variables can be defined using .env
filestwilio infra:preview
: Previews changes without deploying them to your Twilio projecttwilio infra:destroy
: Destroy deployed resources associated to a specific environmenttwilio infra:environment:new
: Create a new environment for the current Twilio projecttwilio infra:environment:set
: Get the deployment environment set for the current projecttwilio infra:environment:get
: Set the deployment environment for the current projectTo see the usage details and options for each subcommand, run twilio infra:<subcommand> --help
.
Environment variables used by the infra
commands can be store in a .env
file. Each deployment environment can have his own file. The env
file needs to be placed in the directory where the infra command is executed and it needs to respect the following naming convention:
.env.<environment name>
For example, if your environment is called dev
the file needs to be called:
.env.dev
.env
file without suffix will not be loaded automatically by the CLI plugin.
This project welcomes contributions from the community. Please see the CONTRIBUTING.md
file for more details.
Please be aware that this project has a Code of Conduct. The tldr; is to just be excellent to each other ❤️
This plugin is based on the Twilio CLI Serverless Plugin repository. A big thank you to everyone involved in that project! #WeBuild
MIT
FAQs
Develop and deploy your Twilio infrastructure using code
We found that plugin-twilio-infra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.