Protect your Code Engine functions |
Henrik's thoughts on life in IT, data and information management, cloud computing, cognitive computing, covering IBM Db2, IBM Cloud, Watson, Amazon Web Services, Microsoft Azure and more.
Friday, March 15, 2024
Authentication for your IBM Cloud Code Engine functions
Tuesday, February 20, 2024
Spreadsheets: How to excel with Db2 data
Generated chart in Excel file |
Thursday, November 30, 2023
Thoughts on how to move from Cloud Functions to Code Engine
Moving code and containers |
Tuesday, November 28, 2023
Tips and tricks for using IBM Cloud Code Engine functions
Utilize Code Engine runtime information |
Friday, August 25, 2023
Simple installation: Python driver for IBM Db2 (finally) has wheel support
If you have feedback, suggestions, or questions about this post, please reach out to me on Twitter (@data_henrik), Mastodon (@data_henrik@mastodon.social), or LinkedIn.
Thursday, April 20, 2023
Blast from the past: Procfile for Python cloud apps
One of my first cloud apps |
Recently, I tried out a feature of IBM Cloud Code Engine: Deploying my app directly from source code. It was a simple app, but it failed. I was stunned and investigated the problem. To my surprise, I could have known it because it was something from the past: A Procfile was needed.
Friday, March 24, 2023
Analyze your IBM Cloud access management setup
ER diagram for cloud security data |
Tuesday, January 10, 2023
Generate PowerPoint slides from your Db2 data with Python
Generated PowerPoint slide with Db2 data |
Tuesday, September 6, 2022
New IBM Cloud security features you should know
Custom role for operating Code Engine |
Thursday, June 2, 2022
Create a REST API with OpenAPI spec for your database objects
Swagger UI for my events API |
Monday, May 16, 2022
Containerize your Db2 Python app
De-containerizing my stuff |
Thursday, November 18, 2021
On serverless data scraping, cloud object storage, MinIO and rclone
Building a data lake the serverless way |
Monday, October 11, 2021
Db2 on Cloud credentials and how to connect from your app
Monday, July 26, 2021
How to connect from Python to Db2
One of the recurring questions I have seen is "how to connect from Python to Db2". I have blogged about Python and Db2 a couple times before. Recently, the question has been popping up again more frequently. From my view, the increased security with mandatory SSL/TLS encryption and the use of Python-based Jupyter notebooks for data science and AI / ML projects are the drivers behind that increase. Moreover, there is Db2 on-premises and the Db2 on Cloud / Db2 Warehouse on Cloud plus container-based offerings. Today, I am trying to sort this out and answer that question. Again.... :)
Friday, May 28, 2021
IBM Cloud: Send out alert emails using SMTP
Tuesday, March 30, 2021
cron-like scheduling on IBM Cloud
cron-like scheduling |
Some days ago I stumbled over my 2015 post "Bluemix: Simple cron-like service for my Python code". It is not just the name Bluemix which is dated. Since then, it has transformed into IBM Cloud Platform and has added serverless compute options like IBM Cloud Functions (OpenWhisk) and recently IBM Cloud Code Engine. Both of them support "eventing", event-based execution of code. And both support Python code as well as many other programming languages like Node.js, Go (Golang), PHP and more. So, what does it take to set up cron-like scheduling? Not much.
Thursday, March 11, 2021
Cloud tutorial on serveless web app and eventing
A follow-up from my last post on Python decorators:
Solution architecture |
Today, that same solution scenario and app are still available, but they are served by IBM Cloud Code Engine. Code Engine is a fully managed, serverless platform that runs your containerized workloads, including web apps, microservices, event-driven functions or batch jobs. The slightly renamed tutorial — "Serverless web app and eventing for data retrieval and analytics" — demonstrates how the existing app can be containerized and both served as web app and and used to process the daily data collection event.
Friday, March 5, 2021
Pseudo-decorators for my Python Flask app
Secured Python Flask app on Code Engine |
Monday, March 1, 2021
JWT token authentication in Db2 runtimes like Python or Node.js
Python script connecting to Db2 with JWT |
Tuesday, September 15, 2020
Some fun digging into IBM Cloud access policies
On IBM Cloud, I have an account with multiple other users. To organize teamwork, I followed best practices for organizing users, teams, applications and made use of the IBM Cloud IAM (Identity and Access Management) capabilities.
With users, service IDs, access groups, and access policies in place, I wondered how to get insights into per-user privileges and the scope of service ID permissions. Sure, I could use the IBM Cloud console (UI) or the Command Line Interface (CLI), but why not test the API (Application Programming Interface) for some customized reporting? The script is available on GitHub.