Skip to content

Latest commit

 

History

History

image

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Image Module Example

This module is used to create Image

Example Usage

data "ibm_resource_group" "resource_group" {
  name = (var.resource_group != null ? var.resource_group : "default")
}

module "image" {
  source = "terraform-ibm-modules/vpc/ibm//modules/image"

  name               = var.name
  resource_group_id  = data.ibm_resource_group.resource_group.id
  href               = var.href
  operating_system   = var.operating_system
  encrypted_data_key = var.encrypted_data_key
  encryption_key     = var.encryption_key
  tags               = var.tags
}

Requirements

Name Version
terraform >= 1.3.0
ibm >= 1.64.0, <2.0.0

Modules

No modules.

Resources

Name Type
ibm_is_image.image resource

Inputs

Name Description Type Default Required
encrypted_data_key A base64-encoded, encrypted representation of the key that was used to encrypt the data for this image string null no
encryption_key The CRN of the Key Protect Root Key or Hyper Protect Crypto Service Root Key for this resource string null no
href Image Href value string n/a yes
name Name of the Image string n/a yes
operating_system Image Operating system string n/a yes
resource_group_id Resource group ID string null no
tags List of Tags for the Image list(string) null no

Outputs

Name Description
image_id The ID of the Image