ibm-cloud-docs / ibm-cloud-provider-for-terraform

Documentation repository for ibm-cloud-provider-for-terraform
3 stars 17 forks source link

Get errors #28

Open tschrenk-corp opened 10 months ago

tschrenk-corp commented 10 months ago

Hello,

I am not a developer but have modified terraform code in the past. Therefore I wanted to execute the procedure from scratch.

Step2- point1 It would be nice to suggest a file name e.g. kubernetes.tf Not clear if we create either Kubernetes or ROKS or both

Point 2: terraform init worked

Point 3: terraform plan throws errors

Gets the following errors: Can you provide a sample config where you only define the API-Key by an env variable and then have a configuration that works.

Warning: Value for undeclared variable │ │ The root module does not declare a variable named "ibmcloud_api_key" but a │ value was found in file "terraform.tfvars". If you meant to use this value, │ add a "variable" block to the configuration. │ │ To silence these warnings, use TFVAR... environment variables to provide │ certain "global" settings to all configurations in your organization. To │ reduce the verbosity of these warnings, use the -compact-warnings option. ╵ ╷ │ Error: ibmcloud_api_key or bluemix_api_key or iam_token and iam_refresh_token must be provided. Please see the documentation on how to configure it │ │ with data.ibm_resource_group.resource_group, │ on kub.tf line 1, in data "ibm_resource_group" "resource_group": │ 1: data ibm_resource_group "resource_group" {

I will talk to a developer, propably this can be fixed but maybe we can support a newby by more detailed steps.

Happy to volunteer for trying it out.