The Pulumi IONOS Cloud provider enables you to manage IONOS Cloud resources using Pulumi in your preferred language. Follow the steps below to install the provider and set up your environment.
You can provide credentials using environment variables (recommended for security):
Environment Variable
Description
IONOS_USERNAME
Username for IONOS Cloud API authentication
IONOS_PASSWORD
Password for IONOS Cloud API authentication
IONOS_TOKEN
API token for authentication (alternative to username/password)
IONOS_API_URL
API endpoint URL (default: api.ionos.com). Override only if necessary.
IONOS_LOG_LEVEL
Log level: Off, Debug, or Trace (default: Off)
IONOS_PINNED_CERT
SHA-256 public fingerprint for certificate pinning
IONOS_CONTRACT_NUMBER
Contract number (for reseller accounts only)
IONOS_S3_ACCESS_KEY
Access key for IONOS Object Storage API
IONOS_S3_SECRET_KEY
Secret key for IONOS Object Storage API
IONOS_S3_REGION
Region for Object Storage (default: eu-central-3). Required if using IONOS_API_URL_OBJECT_STORAGE.
Example (Linux/macOS):
Certificate Pinning
To enable certificate pinning, set the IONOS_PINNED_CERT environment variable to the SHA-256 public fingerprint of the certificate.
You can obtain the fingerprint from your browser's certificate details.
Debugging
Enable logging for troubleshooting by setting IONOS_LOG_LEVEL:
Allowed values: Off, Debug, Trace.
Note: Use trace only for debugging. Disable it in your production environments because it can log sensitive data. It logs the full request and response without encryption, even for an HTTPS call. Verbose request and response logging can also significantly impact your application’s performance.
Troubleshooting
Ensure your credentials are correct and exported in your environment.
If you encounter plugin errors, verify the provider binary version matches your Pulumi project requirements.