terraform-provider-ibm | https : | Infrastructure Automation library
kandi X-RAY | terraform-provider-ibm Summary
kandi X-RAY | terraform-provider-ibm Summary
You can also pull the docker image for the ibmcloud terraform provider :.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of terraform-provider-ibm
terraform-provider-ibm Key Features
terraform-provider-ibm Examples and Code Snippets
Community Discussions
Trending Discussions on terraform-provider-ibm
QUESTION
I can successfully create an instance in IBMCloud via Terraform. The problem is that after successfully deploying I cannot ssh into the instance.
The version of the terraform-provider-ibm is: 1.11.2.
The version of terraform itself is: v0.12.20.
The terraform code I am using is the following:
...ANSWER
Answered 2020-Sep-09 at 06:35There are a couple of changes that need to be done in the terraform file
- You need to attach the instance (vsi) to the security group.
- No need of an
network interface
if you are defining a primary network interface. In case, if you need one, remember to attach the security group withssh
rule usingsecurity_groups
- The remote should be
0.0.0.0/0
, not127.0.0.1
- Pass the SSH pub key value
cat ~/.ssh/id_rsa.pub
or create the SSH key from the UI and then pass the key name
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install terraform-provider-ibm
Download and install Terraform for your system.
Create a versions.tf file in in your Terraform module folder and add a terraform block using the syntax below. Note, you must be using Terraform v0.13.x or a newer version.
Run terraform init to fetch the IBM Cloud provider plug-in for Terraform from the Terraform Registry.
If you want to run Terraform with the IBM Cloud provider plugin on your system, complete the following steps:. See the official documentation for more details on using the IBM provider.
Download and install Terraform for your system.
Download the IBM Cloud provider plugin for Terraform.
Unzip the release archive to extract the plugin binary (terraform-provider-ibm_vX.Y.Z).
Move the binary into the Terraform plugins directory for the platform. Linux/Unix/OS X: ~/.terraform.d/plugins Windows: %APPDATA%\terraform.d\plugins
Export API credential tokens as environment variables. This can either be IBM Cloud API keys or Softlayer API keys and usernames, depending on the resources you are provisioning.
Add the plug-in provider to the Terraform configuration file.
Download IBM Cloud Ansible modules from release page.
Download IBM Cloud Ansible modules from release page
Extract module archive. unzip ibmcloud_ansible_modules.zip
Add modules and module_utils to the Ansible search path. E.g.: cp build/modules/* $HOME/.ansible/plugins/modules/. cp build/module_utils/* $HOME/.ansible/plugins/module_utils/.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page