Open jcabrra opened 5 years ago
I am facing the same issue
Hi the service name is wrong can you try to run the command to list all services
ibmcloud catalog service-marketplace
From the o/p try to get the service name (toolchain)
ibmcloud catalog service toolchain
to get the plans
The service is toolchain and plan is lite
I tried below sample
resource "ibm_resource_instance" "test" {
name = "test"
service = "toolchain"
plan = "lite"
location = "us-south"
}
Harinis-MacBook-Pro:toolchain hkantare$ terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# ibm_resource_instance.test will be created
+ resource "ibm_resource_instance" "test" {
+ crn = (known after apply)
+ guid = (known after apply)
+ id = (known after apply)
+ location = "us-south"
+ name = "test"
+ plan = "lite"
+ resource_controller_url = (known after apply)
+ resource_crn = (known after apply)
+ resource_group_name = (known after apply)
+ resource_name = (known after apply)
+ resource_status = (known after apply)
+ service = "toolchain"
+ status = (known after apply)
+ tags = (known after apply)
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
ibm_resource_instance.test: Creating...
Error: toolchain cannot be provisioned by resource controller
on main.tf line 1, in resource "ibm_resource_instance" "test":
1: resource "ibm_resource_instance" "test" {
The same service can't be provisioned using ibmcloud cli
Harinis-MacBook-Pro:toolchain hkantare$ ic resource service-instance-create test toolchain lite us-south
Creating service instance test in resource group default of account Harini Reddy's Account as hkantare@in.ibm.com...
REQUEST: [2020-06-05T11:45:58+05:30]
GET /api/v1/toolchain?include=%2A HTTP/1.1
Host: globalcatalog.cloud.ibm.com
Accept: application/json
Accept-Language: en
Accept-Language: en-US
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: IBM Cloud CLI 1.1.0 / darwin
RESPONSE: [2020-06-05T11:45:59+05:30] Elapsed: 636ms
HTTP/1.1 404 Not Found
Transfer-Encoding: chunked
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Cf-Cache-Status: DYNAMIC
Cf-Ray: 59e7c3242f4fc93c-HYD
Cf-Request-Id: 0324b84a970000c93c66041200000001
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Fri, 05 Jun 2020 06:15:59 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cfduid=dfde366c497b308932f2cb17dd7225d781591337759; expires=Sun, 05-Jul-20 06:15:59 GMT; path=/; domain=.globalcatalog.cloud.ibm.com; HttpOnly; SameSite=Lax
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding, Origin, Access-Control-Request-Headers, Access-Control-Request-Method
X-Content-Type-Options: nosniff
X-Gc-Instance-Id: kub--globalcatalog-au-syd-prod--resource-catalog-68575f7594-td8zk
X-Global-Transaction-Id: eb5d7c441b5c88bd576ea3cd25fb280a
85
{"message":"Get object request for an invalid id : toolchain","code":404,"global_transaction_id":"eb5d7c441b5c88bd576ea3cd25fb280a"}
0
REQUEST: [2020-06-05T11:45:59+05:30]
GET /api/v1?include=%2A&q=toolchain HTTP/1.1
Host: globalcatalog.cloud.ibm.com
Accept: application/json
Accept-Language: en
Accept-Language: en-US
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: IBM Cloud CLI 1.1.0 / darwin
RESPONSE: [2020-06-05T11:45:59+05:30] Elapsed: 311ms
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: private, must-revalidate
Cf-Cache-Status: DYNAMIC
Cf-Ray: 59e7c3258f9fc93c-HYD
Cf-Request-Id: 0324b84b720000c93c66044200000001
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Date: Fri, 05 Jun 2020 06:15:59 GMT
Etag: W/"a32f6977-a6a0-11ea-9f06-aa1ce6da9e79:10864556054103465996-57"
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Set-Cookie: __cfduid=dfde366c497b308932f2cb17dd7225d781591337759; expires=Sun, 05-Jul-20 06:15:59 GMT; path=/; domain=.globalcatalog.cloud.ibm.com; HttpOnly; SameSite=Lax
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding, Origin, Access-Control-Request-Headers, Access-Control-Request-Method
X-Content-Type-Options: nosniff
X-Gc-Instance-Id: kub--globalcatalog-au-syd-prod--resource-catalog-68575f7594-gzljv
X-Global-Transaction-Id: a6ec9381f2b4c69e0f5ba7c8be243542
6d27
{"offset":0,"limit":50,"count":6,"resource_count":6,"first":"https://globalcatalog.cloud.ibm.com/api/v1?include=%2A&languages=en&q=toolchain","resources":[{"active":true,"catalog_crn":"crn:v1:bluemix:public:globalcatalog::::service:IBM-Performance-Hub-1.0","children_url":"https://globalcatalog.cloud.ibm.com/api/v1/IBM-Performance-Hub-1.0/%2A","created":"2016-05-09T17:54:04Z","disabled":false,"geo_tags":["au-syd","eu-gb","us-south"],"id":"IBM-Performance-Hub-1.0","images":{"feature_image":"https://cache.globalcatalog.cloud.ibm.com/api/v1/IBM-Performance-Hub-1.0/artifacts/cache/609de6907e4257c0bd6ebf0ffed24a24-public/availability_mon_64.png","image":"https://cache.globalcatalog.cloud.ibm.com/api/v1/IBM-Performance-Hub-1.0/artifacts/cache/1587f85fe6df1a14f2bace3968e465ca-public/availability_mon_50.png","medium_image":"https://cache.globalcatalog.cloud.ibm.com/api/v1/IBM-Performance-Hub-1.0/artifacts/cache/f2f5bd885e3f016f5296febdb530d5e6-public/availability_mon_32.png","small_image":"https://cache.globalcatalog.cloud.ibm.com/api/v1/IBM-Performance-Hub-1.0/artifacts/cache/5601720f827db64473833c690600842f-public/availability_mon_24.png"},"kind":"service","metadata":{"callbacks":{"broker_url":"https://perfbroker.ng.bluemix.net","service_monitor_api":"https://perfbroker.ng.bluemix.net/healthcheck/status"},"original_name":"AvailabilityMonitoring","rc_compatible":false,"service":{"async_provisioning_supported":false,"async_unprovisioning_supported":false,"bindable":true,"cf_guid":{"au-syd":"32e35ce2-a421-42ee-90ff-2fbb87fa2d00","eu-gb":"319e4fba-96c7-40fc-8762-8e667cb0847c","us-south":"18cfd285-46c2-457b-bfba-7e469e1bddf9"},"custom_create_page_hybrid_enabled":false,"extension":null,"iam_compatible":false,"parameters":null,"plan_updateable":true,"rc_provisionable":true,"service_check_enabled":false,"service_key_supported":false,"state":"","test_check_interval":0,"type":"","unique_api_key":false,"user_defined_service":null},"ui":{"strings":{"en":{"bullets":[{"description":"Monitoring capabilities available out-of-the-box for any application running anywhere with automatically configured availability test","title":"Get started in less than 5 minutes"},{"description":"Correlated analysis of response time, availability, alerts and team activities such as code deployment to isolate problems to changes","title":"See how deployments impact performance"},{"description":"Monitor uptime and response time of your applications, as frequent as every minute, from several geographical locations around the world. Run synthetics tests to measure performance of webpage loads, API calls and simulated user flows through scripted browser interaction using Selenium","title":"Maximize uptime and user satisfaction"},{"description":"Waterfall analysis helps pinpoint exact step of failure coming from broken links, large images, slow lookups or external requests, etc. Automatic screenshots of browser failures and historical performance statistics aid diagnosis","title":"Get to the bottom of the failure accurately in minutes"},{"description":"Be alerted on issues-via email, Slack, SMS or Push notification-BEFORE they impact users. Create alert policies to reduce alert noise via seamless integration with Alert Notification service","title":"Be proactive"}],"media":[{"caption":"Alert Frequency: Monitor and track how your application performs from Locations around the world.","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/alert_frequency_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/alert_frequency.png"},{"caption":"Stay informed: Be alerted on issues before they impact users via email, Slack, SMS or Push notification.","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/stay_informed_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/stay_informed.png"},{"caption":"Find Patterns: Visually correlate how deployments affect the response time of your app and when Alerts are triggered.","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/find_patterns_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/find_patterns.png"},{"caption":"Identify bottlenecks: Analyze request waterfalls to pinpoint exact step of failure.","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/identify_bottlenecks_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/identify_bottlenecks.png"},{"caption":"Identify overall trends: See how your application tests are performing over time.","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/identify_overall_trends1_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/identify_overall_trends1.png"},{"caption":"Identify overall trends: See how your application tests are performing over time.","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/identify_overall_trends2_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/identify_overall_trends2.png"},{"caption":"Test your application: Configure and test multiple parts of your application.","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/test_your_application_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/test_your_application.png"},{"caption":"Automatic screenshot of a failure: See what your users see, whenever a browser failure occurs..","thumbnail_url":"http://perfstatic.ng.bluemix.net/screens/automatic_screenshot_thumb.png","type":"image","url":"http://perfstatic.ng.bluemix.net/screens/automatic_screenshot.png"},{"caption":"Availability Monitoring for IBM Cloud Applications - Ensure uptime and user satisfaction 24x7.","thumbnail_url":"https://img.youtube.com/vi/6R7uiyKaPRo/0.jpg","type":"youtube","url":"https://www.youtube.com/embed/6R7uiyKaPRo"},{"caption":"How to configure and use IBM Cloud Availability Monitoring.","thumbnail_url":"https://img.youtube.com/vi/NhQGWi4Y6uo/0.jpg","type":"youtube","url":"https://www.youtube.com/embed/NhQGWi4Y6uo"}]}},"urls":{"doc_url":"https://console.ng.bluemix.net/docs/services/AvailabilityMonitoring/index.html","terms_url":"https://www.ibm.com/software/sla/sladb.nsf/sla/bm-7537-03"}}},"name":"availabilitymonitoring","overview_ui":{"en":{"description":"Around the world, around the clock availability and performance monitoring.","display_name":"Availability Monitoring","long_description":"IBM Cloud Availability Monitoring helps DevOps teams ensure their applications are always available and meeting user expectations for response time as they roll out continuous updates. The service, which is tightly integrated into the DevOps toolchain, runs synthetic tests from locations around the world, around the clock to proactively detect and fix performance issues before they impact users."}},"pricing_tags":["free","lite","paygo"],"provider":{"name":"IBM"},"tags":["bluemix_extensions","dev_ops","gc_migrate","ibm_created","lite"],"updated":"2019-05-24T20:43:58.258Z","url":"https://globalcatalog.cloud.ibm.com/api/v1/IBM-Performance-Hub-1.0?include=%2A&languages=en","visibility":{"exclude":{"accounts":{"377cfa960b98c64dad1cad77cda31f68":"global","9d5d528aa786af01ce99593a82ab540c":"a/9d5d528aa786af01ce99593a82ab540c","e11310e827c4d7ad5238b3dd533156e8":"a/e11310e827c4d7ad5238b3dd533156e8"}},"owner":"a/584ba969e6234cad91f9bd5729d5cbb0","restrictions":"public"}},{"active":true,"catalog_crn":"crn:v1:bluemix:public:globalcatalog::::service:59b735ee-5938-4ebd-a6b2-541aef2d1f68","children_url":"https://globalcatalog.cloud.ibm.com/api/v1/59b735ee-5938-4ebd-a6b2-541aef2d1f68/%2A","created":"2016-09-21T15:46:54Z","disabled":false,"geo_tags":["au-syd","eu-de","eu-gb","jp-tok","us-east","us-south"],"id":"59b735ee-5938-4ebd-a6b2-541aef2d1f68","images":{"feature_image":"https://continuous-delivery-broker.us-south.devops.cloud.ibm.com/graphics/cd_32x32.png","image":"https://continuous-delivery-broker.us-south.devops.cloud.ibm.com/graphics/cd_32x32.png","medium_image":"https://continuous-delivery-broker.us-south.devops.cloud.ibm.com/graphics/cd_32x32.png","small_image":"https://continuous-delivery-broker.us-south.devops.cloud.ibm.com/graphics/cd_32x32.png"},"kind":"service","metadata":{"callbacks":{"broker_url":"https://continuous-delivery-broker.ng.bluemix.net","service_monitor_api":"https://pipeline-ui-service.ng.bluemix.net/healthcheck"},"original_name":"continuous-delivery","other":{"iam":{"key":"","supportedAttributes":[{"key":"serviceInstance"}],"value":""}},"rc_compatible":true,"service":{"async_provisioning_supported":false,"async_unprovisioning_supported":false,"bindable":false,"cf_guid":{"eu-de":"8074d412-71de-4405-b678-6909cbd3c968","eu-gb":"7ab35c4e-e5c4-4466-8003-637bd940befa","us-east":"0aa8ede4-979b-4f83-846a-bc151c275175","us-south":"0aa8ede4-979b-4f83-846a-bc151c275175"},"custom_create_page_hybrid_enabled":false,"extension":null,"iam_compatible":true,"parameters":[],"plan_updateable":true,"rc_provisionable":true,"service_check_enabled":false,"service_key_supported":false,"state":"","test_check_interval":0,"type":"public","unique_api_key":false,"user_defined_service":null},"ui":{"embeddable_dashboard":"true","embeddable_dashboard_full_width":true,"strings":{"en":{"bullets":[{"description":"Toolchains provide an integrated set of tools to build, deploy and manage your apps. You can create toolchains that include IBM Cloud services, open source tools, and third party tools that make development and operations repeatable and easier to manage.","title":"Create an integrated devops toolchain."},{"description":"Build, test, and deploy in a repeatable way with minimal human intervention. By ready to release into production at any time.","title":"Deliver continuously using an automated pipeline."},{"description":"Manage your source code and track work with Git repositories and issue tracking hosted by IBM and built on GitLab Community Edition.","title":"Git Repos and Issue Tracking."},{"description":"You can choose to use the integrated web-based environment built on Eclipse Orion. Create, edit, run, debug, and complete source control tasks, and seamlessly move from editing your code to deploying it to production.","title":"Edit your code from anywhere."},{"description":"Understand build status, security scan results, code coverage, and test coverage to evaluate whether to promote your app to the next environment. Use policy gates to automatically ensure quality before promotion. This feature is available only in the US South, Germany, and United Kingdom regions. Currently, it is not EU-supported.","title":"Improve quality through Insights."}],"media":[{"caption":"Tools used across Continuous Delivery","thumbnail_url":"https://continuous-delivery-broker.us-south.devops.cloud.ibm.com/graphics/toolchain_computers_with_icons_thumbnail.png","type":"image","url":"https://continuous-delivery-broker.us-south.devops.cloud.ibm.com/graphics/toolchain_computers_with_icons.png"}]}},"urls":{"doc_url":"https://cloud.ibm.com/docs/services/ContinuousDelivery?topic=ContinuousDelivery-getting-started","instructions_url":"https://cloud.ibm.com/docs/services/ContinuousDelivery/index.html","terms_url":"https://www.ibm.com/software/sla/sladb.nsf/sla/bm-7566-05"}}},"name":"continuous-delivery","overview_ui":{"en":{"description":"Support DevOps best practices by using Git, issue tracking, CI/CD pipelines, and the Eclipse Orion Web IDE in the Cloud.","display_name":"Continuous Delivery","long_description":"Use Continuous Delivery to automate builds, unit tests, deployments, and more. Edit and push code using Git Repos and Issue Tracking and the rich web based IDE. Create toolchains to enable tool integrations that support your development, deployment, and operation tasks."}},"pricing_tags":["free","lite","paygo"],"provider":{"email":"bmdevops@us.ibm.com","name":"IBM"},"tags":["dev_ops","eu_access","gc_migrate","ibm_created","lite","rc_compatible"],"updated":"2020-05-01T14:47:27.595Z","url":"https://globalcatalog.cloud.ibm.com/api/v1/59b735ee-5938-4ebd-a6b2-541aef2d1f68?include=%2A&languages=en","visibility":{"approved":true,"exclude":{"accounts":{"377cfa960b98c64dad1cad77cda31f68":"global","9d5d528aa786af01ce99593a82ab540c":"a/9d5d528aa786af01ce99593a82ab540c","a05650172002780c3d73fc50721a3a8e":"global","e11310e827c4d7ad5238b3dd533156e8":"a/e11310e827c4d7ad5238b3dd533156e8"}},"include":{"accounts":{"1b772ca327b5f2371014877811022ea3":"a/a6677d241bbad8189145cbae0c73208f","4b5f219cdaee498f9dac672a89321530":"global","6a0ad7e544f077ce1112fb78d1840535":"global","9d5d528aa786af01ce99593a82f55dbf":"global","a6677d241bbad8189145cbae0c73208f":"global","d50fb4700dcb8797f8f2efd18a46c7b9":"global"}},"owner":"a/a6677d241bbad8189145cbae0c73208f","restrictions":"public"}},{"active":false,"catalog_crn":"crn:v1:bluemix:public:globalcatalog::::template:java-microprofile-java-ee-microservice","children_url":"https://globalcatalog.cloud.ibm.com/api/v1/java-microprofile-java-ee-microservice/%2A","created":"2018-09-04T19:11:03.636Z","disabled":false,"id":"java-microprofile-java-ee-microservice","images":{"feature_image":"https://my9.digitalexperience.ibm.com/784a70b6-259e-41d3-a879-fa7abaf3f610/dxdam/80/80c4243b-e5aa-4322-9490-c2e7f79c07ce/java-32.svg","image":"https://my9.digitalexperience.ibm.com/784a70b6-259e-41d3-a879-fa7abaf3f610/dxdam/80/80c4243b-e5aa-4322-9490-c2e7f79c07ce/java-32.svg","medium_image":"https://my9.digitalexperience.ibm.com/784a70b6-259e-41d3-a879-fa7abaf3f610/dxdam/80/80c4243b-e5aa-4322-9490-c2e7f79c07ce/java-32.svg","small_image":"https://my9.digitalexperience.ibm.com/784a70b6-259e-41d3-a879-fa7abaf3f610/dxdam/80/80c4243b-e5aa-4322-9490-c2e7f79c07ce/java-32.svg"},"kind":"template","metadata":{"rc_compatible":false,"template":{"cf_runtime_id":"763dcb4a-8642-4676-ae17-ca5bd032ad9e","default_memory":512,"runtime_catalog_id":"SDK for Node.js™","source":{"path":"app","type":"git","url":"https://github.ibm.com/arf/starter-microservice-basic"},"template_id":"nodejsHelloWorld"},"ui":{"urls":{"catalog_details_url":"https://cloud.ibm.com/developer/appservice/create-app?&starterKit=c5178a10-b4ff-3ecb-a50f-e548a19573e5"}},"version":"1.0"},"name":"java-microprofile-java-ee-microservice","overview_ui":{"en":{"description":"A starter for building a microservice in Java using the MicroProfile / Java EE framework.","display_name":"Java Microservice with MicroProfile and Java EE","long_description":"Discover how to modernize and extend existing monolithic java applications. This starter kit comes pre-configured as a Java microservice application with the tools you need to set up your development environment and deploy to Kubernetes through a DevOps Toolchain. This starter kit can be used to initiate development of HIPAA-relevant apps and microservices. However, you must ensure that any app or microservice developed based on these starter kits is put through the normal process to have their HIPAA relevance and Readiness confirmed."}},"provider":{"name":"IBM"},"tags":["ibm_created","template"],"updated":"2019-12-20T22:50:53.123Z","url":"https://globalcatalog.cloud.ibm.com/api/v1/java-microprofile-java-ee-microservice?include=%2A&languages=en","visibility":{"exclude":{"accounts":{"e11310e827c4d7ad5238b3dd533156e8":"a/e11310e827c4d7ad5238b3dd533156e8"}},"owner":"a/8e7b5964b99c4e5c8a97de41aaf20e5f","restrictions":"public"}},{"active":true,"catalog_crn":"crn:v1:bluemix:public:globalcatalog::::oss:oss.continuous-delivery-toolchain-core","children_url":"https://globalcatalog.cloud.ibm.com/api/v1/oss.continuous-delivery-toolchain-core/%2A","created":"2018-10-03T21:26:29.146Z","disabled":false,"id":"oss.continuous-delivery-toolchain-core","images":{"image":"https://www.ibm.com/cloud-computing/images/Cloud_Bluemix_banner-1.png"},"kind":"oss","metadata":{"other":{"oss":{"additional_contacts":"","catalog_info":{"catalog_client_facing":false,"category_tags":"","locations":null,"provider":{"name":"","w3id":""},"provider_contact":"","provider_phone":"","provider_support_email":""},"compliance":{"architecture_focal":{"name":"","w3id":""},"availability_monitors":{},"bcdr_focal":{"name":"","w3id":""},"bypass_support_compliances":"","certificate_manager_crns":null,"completed_skill_transfer_and_enablement":false,"consumption_monitors":{},"onboarding_contact":{"name":"","w3id":""},"onboarding_issue_tracker_url":"","pagerduty_urls":null,"security_focal":{"name":"","w3id":""},"servicenow_onboarded":true},"dependency_info":{"inbound_dependencies":null,"outbound_dependencies":null},"general_info":{"client_facing":false,"entry_type":"SUBCOMPONENT","future_operational_status":"","operational_status":"GA","oss_description":"Subcomponent of service continuous-delivery","oss_onboarding_approval_date":"","oss_onboarding_approver":{"name":"","w3id":""},"oss_onboarding_phase":"","oss_tags":["oss_status_crn_green","oss_status_yellow","pnp_candidate","pnp_enabled","servicenow_approved","type_subcomponent"],"parent_resource_name":"continuous-delivery","rmc_number":"","service_now_ciurl":"https://watson.service-now.com/x_ibmwc_ssef_app.do#!/edit/b0f79f03db8543008799327e9d9619e1?class=u_ibm_service_cloud","servicenow_sys_id":"b0f79f03db8543008799327e9d9619e1"},"monitoring_info":{"metrics":null},"operations":{"automation_ids":null,"avm_enabled":false,"bypass_production_readiness":"","cie_dist_list":"","euaccess_usam_name":"","manager":{"name":"Karice Mcintyre","w3id":"karice_mcintyre@ca.ibm.com"},"runbook_enabled":false,"slack":"devops-cd-cie","special_instructions":"","tier2_escalation_type":"GITHUB","tier2_repository":"https://github.ibm.com/org-ids/roadmap","tier2rtc":"","tip_onboarded":false,"toc_avm_focal":{"name":"","w3id":""}},"ownership":{"development_manager":{"name":"","w3id":""},"main_repository":"","offering_manager":{"name":"Peter Klenk","w3id":"pklenk@us.ibm.com"},"segment_id":"58eda55b9babda00075a50d7","segment_name":"Developer Services","segment_owner":{"name":"Phil Buckellew","w3id":"pbuckell@us.ibm.com"},"service_offering":"Continuous Delivery","technical_contact":{"name":"","w3id":""},"tribe_id":"58eda55b9babda00075a50d7-58eda5669babda00075a50ec","tribe_name":"Cloud DevOps","tribe_owner":{"name":"Shawn Clymer","w3id":"sclymer@us.ibm.com"}},"product_info":{"clearinghouse_references":null,"division":"","oss_uid":"OSS0A7Z","part_numbers":null,"part_numbers_refreshed":"","product_ids":null,"taxonomy":{"major_unit_utl10":"","market_utl17":"","minor_unit_utl15":"","offering_utl30":"","portfolio_utl20":""}},"reference_catalog_id":"","reference_catalog_path":"","reference_display_name":"Continuous Delivery - Toolchain","reference_resource_name":"continuous-delivery-toolchain-core","schema_version":"1.0.14","service_now_info":{"cie_pageout":"TOC AVM","erca_approval_group":"IBM Cloud Customer Incident Report Approvers (External)","operations_not_applicable":false,"operations_tier1ag":"continuous-delivery_toolchain-core","operations_tier2ag":"continuous-delivery_toolchain-core","rca_approval_group":"CloudDevOps PRB Approvers","support_not_applicable":false,"support_tier1ag":"acs-appdev","support_tier2ag":"","targeted_communication":"Comm Approvers"},"status_page":{"category_id":"cloudoe.sop.enum.paratureCategory.literal.l372","category_parent":"continuous-delivery","cateogry_id":"cloudoe.sop.enum.paratureCategory.literal.l372","group":"Services/Continuous Delivery"},"support":{"client_experience":"ACS_SUPPORTED","manager":{"name":"Shawn Clymer","w3id":"sclymer@us.ibm.com"},"slack":"devops-support","special_instructions":"PD Esc Sev 1: CD-Support-Core-SEV1\nSev 2-4: CD-Support-Core","third_party_support_url":"","tier2_escalation_type":"GITHUB","tier2_repository":"https://github.ibm.com/org-ids/roadmap","tier2rtc":"Bluemix Services/Continuous Delivery"}}},"rc_compatible":false},"name":"oss.continuous-delivery-toolchain-core","overview_ui":{"en":{"description":"OSS service/component record for Continuous Delivery - Toolchain(continuous-delivery-toolchain-core)","display_name":"OSS Record: Continuous Delivery - Toolchain(continuous-delivery-toolchain-core)","long_description":"OSS service/component record for Continuous Delivery - Toolchain(continuous-delivery-toolchain-core)\n\nNAME=continuous-delivery-toolchain-core TYPE=SUBCOMPONENT/GA OSSTAGS=[oss_status_crn_green oss_status_yellow pnp_candidate pnp_enabled servicenow_approved type_subcomponent] DISPLAY_NAME=\"Continuous Delivery - Toolchain\"\n"}},"provider":{"email":"osscat@us.ibm.com","name":"OSS Catalog Tooling"},"tags":[""],"updated":"2020-04-15T16:43:50.934Z","url":"https://globalcatalog.cloud.ibm.com/api/v1/oss.continuous-delivery-toolchain-core?include=%2A&languages=en","visibility":{"owner":"a/79f09349b04648bf8efad29de029baa6","restrictions":"ibm_only"}},{"active":true,"catalog_crn":"crn:v1:bluemix:public:globalcatalog::::oss:oss.toolchain","children_url":"https://globalcatalog.cloud.ibm.com/api/v1/oss.toolchain/%2A","created":"2018-10-03T21:27:29.794Z","disabled":false,"id":"oss.toolchain","images":{"image":"https://www.ibm.com/cloud-computing/images/Cloud_Bluemix_banner-1.png"},"kind":"oss","metadata":{"other":{"oss":{"additional_contacts":"","catalog_info":{"catalog_client_facing":true,"category_tags":"Developer Tools","locations":["au-syd","eu-de","eu-gb","jp-tok","us-east","us-south"],"provider":{"name":"IBM","w3id":"bmdevops@us.ibm.com"},"provider_contact":"","provider_phone":"","provider_support_email":""},"compliance":{"architecture_focal":{"name":"","w3id":"cbrealey@ca.ibm.com"},"availability_monitors":{},"bcdr_focal":{"name":"","w3id":"pollard3@us.ibm.com"},"bypass_support_compliances":"","certificate_manager_crns":null,"completed_skill_transfer_and_enablement":false,"consumption_monitors":{},"onboarding_contact":{"name":"","w3id":""},"onboarding_issue_tracker_url":"","pagerduty_urls":null,"security_focal":{"name":"","w3id":""},"servicenow_onboarded":false},"dependency_info":{"inbound_dependencies":null,"outbound_dependencies":null},"general_info":{"client_facing":true,"entry_type":"SERVICE","future_operational_status":"","operational_status":"GA","oss_description":"","oss_onboarding_approval_date":"","oss_onboarding_approver":{"name":"","w3id":""},"oss_onboarding_phase":"","oss_tags":["oss_status_crn_red","oss_status_red"],"parent_resource_name":"continuous-delivery","rmc_number":"","service_now_ciurl":"","servicenow_sys_id":""},"monitoring_info":{"metrics":null},"operations":{"automation_ids":null,"avm_enabled":false,"bypass_production_readiness":"","cie_dist_list":"","euaccess_usam_name":"","manager":{"name":"","w3id":""},"runbook_enabled":false,"slack":"","special_instructions":"","tier2_escalation_type":"","tier2_repository":"","tier2rtc":"","tip_onboarded":false,"toc_avm_focal":{"name":"","w3id":""}},"ownership":{"development_manager":{"name":"","w3id":""},"main_repository":"","offering_manager":{"name":"","w3id":""},"segment_id":"","segment_name":"<none>","segment_owner":{"name":"","w3id":""},"service_offering":"","technical_contact":{"name":"","w3id":""},"tribe_id":"","tribe_name":"<none>","tribe_owner":{"name":"","w3id":""}},"product_info":{"clearinghouse_references":null,"division":"","oss_uid":"OSS0A9G","part_numbers":["(none)"],"part_numbers_refreshed":"2018-12-08T0329Z","product_ids":["(none)"],"taxonomy":{"major_unit_utl10":"","market_utl17":"","minor_unit_utl15":"","offering_utl30":"","portfolio_utl20":""}},"reference_catalog_id":"e512e5f0-64fb-11e8-9c23-830c05b8b729","reference_catalog_path":"/toolchain","reference_display_name":"Toolchain","reference_resource_name":"toolchain","schema_version":"1.0.14","service_now_info":{"cie_pageout":"","erca_approval_group":"","operations_not_applicable":false,"operations_tier1ag":"","operations_tier2ag":"","rca_approval_group":"","support_not_applicable":false,"support_tier1ag":"","support_tier2ag":"","targeted_communication":""},"status_page":{"category_id":"","category_parent":"","cateogry_id":"","group":""},"support":{"client_experience":"","manager":{"name":"","w3id":""},"slack":"","special_instructions":"","third_party_support_url":"","tier2_escalation_type":"","tier2_repository":"","tier2rtc":""}}},"rc_compatible":false},"name":"oss.toolchain","overview_ui":{"en":{"description":"OSS service/component record for Toolchain(toolchain)","display_name":"OSS Record: Toolchain(toolchain)","long_description":"OSS service/component record for Toolchain(toolchain)\n\nNAME=toolchain TYPE=SERVICE/GA OSSTAGS=[oss_status_crn_red oss_status_red] DISPLAY_NAME=\"Toolchain\"\n"}},"provider":{"email":"osscat@us.ibm.com","name":"OSS Catalog Tooling"},"tags":[""],"updated":"2020-05-07T02:58:01.36Z","url":"https://globalcatalog.cloud.ibm.com/api/v1/oss.toolchain?include=%2A&languages=en","visibility":{"owner":"a/79f09349b04648bf8efad29de029baa6","restrictions":"ibm_only"}},{"active":true,"catalog_crn":"crn:v1:bluemix:public:globalcatalog::::service:e512e5f0-64fb-11e8-9c23-830c05b8b729","children_url":"https://globalcatalog.cloud.ibm.com/api/v1/e512e5f0-64fb-11e8-9c23-830c05b8b729/%2A","created":"2018-07-16T17:32:05.23Z","disabled":false,"geo_tags":["au-syd","eu-de","eu-gb","jp-tok","us-east","us-south"],"id":"e512e5f0-64fb-11e8-9c23-830c05b8b729","images":{"feature_image":"https://cloud.ibm.com/devops/graphics/toolchains.svg","image":"https://cloud.ibm.com/devops/graphics/toolchains.svg","medium_image":"https://cloud.ibm.com/devops/graphics/toolchains.svg","small_image":"https://cloud.ibm.com/devops/graphics/toolchains.svg"},"kind":"service","metadata":{"other":{"iam":{"key":"","supportedAttributes":[{"key":"serviceInstance"}],"value":""}},"rc_compatible":true,"service":{"async_provisioning_supported":false,"async_unprovisioning_supported":false,"bindable":false,"cf_guid":{"us-south":"179c9187-7e99-45a9-a594-fb9c8a3932bb"},"custom_create_page_hybrid_enabled":false,"extension":null,"iam_compatible":true,"parameters":[],"plan_updateable":false,"rc_provisionable":false,"service_check_enabled":false,"service_key_supported":false,"state":"","test_check_interval":0,"type":"toolchain","unique_api_key":false,"user_defined_service":null},"ui":{"urls":{"catalog_details_url":"https://console.cloud.ibm.com/devops/create","doc_url":"https://cloud.ibm.com/docs/services/ContinuousDelivery?topic=ContinuousDelivery-getting-started","instructions_url":"https://cloud.ibm.com/docs/services/ContinuousDelivery/index.html","terms_url":"https://www.ibm.com/software/sla/sladb.nsf/sla/bm-7566-05"}}},"name":"toolchain","overview_ui":{"en":{"description":"Integrate tools to build, test, and deploy applications by using DevOps best practices.","display_name":"Toolchain","long_description":"Use Continuous Delivery to automate builds, unit tests, deployments, and more. Edit and push code using Git Repos and Issue Tracking and the rich web based IDE. Create toolchains to enable tool integrations that support your development, deployment, and operation tasks."}},"pricing_tags":["free","lite"],"provider":{"email":"bmdevops@us.ibm.com","name":"IBM"},"tags":["dev_ops","ibm_created","ibm_release","lite","rc_compatible"],"updated":"2020-05-01T14:46:56.793Z","url":"https://globalcatalog.cloud.ibm.com/api/v1/e512e5f0-64fb-11e8-9c23-830c05b8b729?include=%2A&languages=en","visibility":{"approved":true,"exclude":{"accounts":{"377cfa960b98c64dad1cad77cda31f68":"a/377cfa960b98c64dad1cad77cda31f68","9d5d528aa786af01ce99593a82ab540c":"a/9d5d528aa786af01ce99593a82ab540c","e11310e827c4d7ad5238b3dd533156e8":"a/e11310e827c4d7ad5238b3dd533156e8"}},"include":{"accounts":{"4d686d1b782b51cfcf3219e51fe3d760":"a/a6677d241bbad8189145cbae0c73208f","6a0ad7e544f077ce1112fb78d1840535":"global","80c84878b3b02b88be3f836f0534b03e":"a/a6677d241bbad8189145cbae0c73208f","9d5d528aa786af01ce99593a827a05f0":"a/a6677d241bbad8189145cbae0c73208f","9d5d528aa786af01ce99593a82f55dbf":"global","a6677d241bbad8189145cbae0c73208f":"a/a6677d241bbad8189145cbae0c73208f","d50fb4700dcb8797f8f2efd18a46c7b9":"global"}},"owner":"a/a6677d241bbad8189145cbae0c73208f","restrictions":"public"}}]}
0
FAILED
Service toolchain cannot be provisioned by resource controller
@hkantare I tried the sample and I am getting the same error like you
Error: toolchain cannot be provisioned by resource controller
May be we need to confirm with respective toolchain
I just executed ic resource service-instance
on an existing toolchain I did create over the web ui (over 'build your custom toolchain').
It shows the same parameters (Location, service name, plan etc.) as we tried passing over the cli + terraform.
So I assume it is a bug in the cli repo or even on the backend?
I now know that it is technically possible to create the toolchains over the REST API https://github.com/open-toolchain/sdk/wiki/Toolchain-Creation-page-parameters . So why is terraform-provider-ibm showing this error?
@hendriku The API which is used in the above like(https://github.com/open-toolchain/test-headless-toolchain)
curl -v -X POST -H "Authorization: Bearer <IAM_TOKEN>" -d "repository=https://github.com/open-toolchain/test-headless-toolchain&env_id=ibm:yp:us-south&autocreate=true&orgGuid=$(ibmcloud cf org $(ibmcloud target |grep org | sed 's/Org:[ ]//g') --guid)&spaceGuid=$(ibmcloud cf space $(ibmcloud target |grep Space | sed 's/Space:[ ]//g') --guid)&apiKey=<API_KEY>&resourceGroupId=ABCD" -k https://cloud.ibm.com/devops/setup/deploy?env_id=ibm:yp:us-south
is different which we use for creating the services using resource controller API https://cloud.ibm.com/apidocs/resource-controller/resource-controller#create-provision-a-new-resource-instance
This is the general resource controller API which is used to provision different services in IBM cloud...
ibm_resource_instance uses the above the API ....so provision fails (similar to cli ibm resource service-instance...)
Okay, thanks I understand!
Is it part of the roadmap to change the resource provisioning for toolchains to an API which is capable of creating them? Or is there any other way to get the terraform-provider-ibm to provision toolchains?
Is there any update on this issue? I would like to create toolchains from terraform
I am trying to provision a toolchain service with terraform and its toolchain configuration.
I am stuck at finding the right service name. I tried "create-a-toolchain" and "build-your-own-toolchain".
Is it possible to provision a configured toolchain?