You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of the Terraform provider are you using?
main-branch
What version of the Terraform CLI are you using?
1.7.3
What CF API version are you using?
3.153
What type of issue are you facing
bug report
Describe the bug
When creating a cloudfoundry_app and defining the memory in the unit MB the creation fails with the following error message:
Error: Provider produced inconsistent result after apply
│
│ When applying changes to cloudfoundry_app.helloterraform, provider "provider[\"registry.terraform.io/sap/cloudfoundry\"]" produced an unexpected new value: .memory: was cty.StringVal("512MB"),
│ but now cty.StringVal("512M").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Expected Behavior
The creation works as when providing the memory value as "512M".
According to the CF API M and MB are both valid units
# ------------------------------------------------------------------------------------------------------# Define the required providers for this module# ------------------------------------------------------------------------------------------------------terraform {
required_providers {
btp={
source ="SAP/btp"
}
}
}
# ------------------------------------------------------------------------------------------------------# Fetch data from SAP BTP Trial Account # ------------------------------------------------------------------------------------------------------locals {
trial=[foraccindata.btp_subaccounts.all.values:accifacc.name=="trial"][0]
trial_cloudfoundry_env=[forenvindata.btp_subaccount_environment_instances.trial.values:envifenv.environment_type=="cloudfoundry"][0]
}
data"btp_subaccounts""all" {}
data"btp_subaccount_environment_instances""trial" { subaccount_id=local.trial.id }
modules/btp_trial_data/btp_trial_data_output.tf
output"id" {
description="The ID of the trial account"value=local.trial.id
}
output"cloudfoundry" {
description="The cloudfoundry environment which is by default created for your trialaccount"value={
api_endpoint =lookup(jsondecode(local.trial_cloudfoundry_env.labels), "API Endpoint")
org_id =lookup(jsondecode(local.trial_cloudfoundry_env.labels), "Org ID")
org_name =lookup(jsondecode(local.trial_cloudfoundry_env.labels), "Org Name")
region =replace(local.trial_cloudfoundry_env.landscape_label, "/cf-/", "")
}
}
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
What version of the Terraform provider are you using?
main-branch
What version of the Terraform CLI are you using?
1.7.3
What CF API version are you using?
3.153
What type of issue are you facing
bug report
Describe the bug
When creating a
cloudfoundry_app
and defining the memory in the unit MB the creation fails with the following error message:Expected Behavior
The creation works as when providing the memory value as "512M".
According to the CF API M and MB are both valid units
Steps To Reproduce
terraform init
terraform apply
Your Terraform Configuration
Roles
-Org Manager
Add screenshots to help explain your problem
n/a
Additional context
The whole configuration looks like this:
main.tf
provider.tf
outputs.tf
/modules/btp_trial_data/btp_trial_data.tf
modules/btp_trial_data/btp_trial_data_output.tf
The text was updated successfully, but these errors were encountered: