ibm_cr_retention_policy -- Configure IBM Cloud 'ibm_cr_retention_policy' resource ================================================================================= .. contents:: :local: :depth: 1 Synopsis -------- Create, update or destroy an IBM Cloud 'ibm_cr_retention_policy' resource This module does not support idempotency ForMoreInfoRefer ---------------- refer - https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/cr_retention_policy Requirements ------------ The below requirements are needed on the host that executes this module. - IBM-Cloud terraform-provider-ibm v1.51.0 - Terraform v0.12.20 Parameters ---------- images_per_repo (True, int, None) (Required for new resource) Determines how many images will be retained for each repository when the retention policy is executed. The value -1 denotes 'Unlimited' (all images are retained). retain_untagged (False, bool, False) Determines if untagged images are retained when executing the retention policy. This is false by default meaning untagged images will be deleted when the policy is executed. namespace (True, str, None) (Required for new resource) The namespace to which the retention policy is attached. id (False, str, None) (Required when updating or destroying existing resource) IBM Cloud Resource ID. state (False, any, available) State of resource iaas_classic_username (False, any, None) (Required when generation = 1) The IBM Cloud Classic Infrastructure (SoftLayer) user name. This can also be provided via the environment variable 'IAAS_CLASSIC_USERNAME'. iaas_classic_api_key (False, any, None) (Required when generation = 1) The IBM Cloud Classic Infrastructure API key. This can also be provided via the environment variable 'IAAS_CLASSIC_API_KEY'. region (False, any, us-south) The IBM Cloud region where you want to create your resources. If this value is not specified, us-south is used by default. This can also be provided via the environment variable 'IC_REGION'. ibmcloud_api_key (True, any, None) The IBM Cloud API key to authenticate with the IBM Cloud platform. This can also be provided via the environment variable 'IC_API_KEY'. Authors ~~~~~~~ - Jay Carman (@jaywcarman)