IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
341 stars 670 forks source link

iam_account_settings support for access/refreh token expiration #4024

Open jpmonge86 opened 2 years ago

jpmonge86 commented 2 years ago

Community Note

Description

Add support to set the following parameters:

system_access_token_expiration_in_seconds
system_refresh_token_expiration_in_seconds

Any number between '900' and '3,600' is allowed, alternatively the following string values are acceptable: 'NOT_SET'"

*iam_account_settings resource/data source

Potential Terraform Configuration

resource "ibm_iam_account_settings" "iam_account_settings" {
  if_match                        = "*"
  allowed_ip_addresses            = var.custom_allowed_ip_addresses
  mfa                             = var.mfa
  restrict_create_service_id      = var.serviceid_creation
  restrict_create_platform_apikey = var.api_creation
  session_expiration_in_seconds   = var.active_session_timeout
  session_invalidation_in_seconds = var.inactive_session_timeout
  system_access_token_expiration_in_seconds = 3600
  system_refresh_token_expiration_in_seconds = 3600
}

References

kavya498 commented 2 years ago

SDK is not yet updated with the latest API Daniel Byrne, Can you please update SDk and this resource?