Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Image): development of image usage constraints (Allowed use) #382

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

SunithaGudisagarIBM1
Copy link
Collaborator

@SunithaGudisagarIBM1 SunithaGudisagarIBM1 commented Sep 11, 2024

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000

@SunithaGudisagarIBM1 SunithaGudisagarIBM1 changed the title feat(Image): development of image usage constraint feat(Image): development of image usage constraints (Allowed use) Nov 4, 2024
@SunithaGudisagarIBM1
Copy link
Collaborator Author

export IBMCLOUD_IS_NG_API_ENDPOINT=https://us-south-genesis-dal-dev76-etcd.iaasdev.cloud.ibm.com/v1

data "ibm_is_volume" "testacc_volume" {
  identifier = "r134-064dcec0-5e15-42cf-8b28-a9d27f9cd751"
}
Screenshot 2024-12-02 at 12 00 48 PM
data "ibm_is_volumes" "testacc_volumes" {
}
Screenshot 2024-12-02 at 12 01 49 PM

@SunithaGudisagarIBM1
Copy link
Collaborator Author

SunithaGudisagarIBM1 commented Dec 2, 2024

data "ibm_is_snapshot" "testacc_snapshot" {
  identifier = "r134-d72184df-c6ab-4c01-9b54-e1c9b3d64e99"
}
Screenshot 2024-12-02 at 12 07 19 PM
data "ibm_is_snapshots" "testacc_snapshots" {
}
Screenshot 2024-12-02 at 12 09 02 PM

@SunithaGudisagarIBM1
Copy link
Collaborator Author

data "ibm_is_image" "testacc_image" {
  identifier = "r134-0950e619-325e-446e-b895-e0bdd21dd1ea"
}
Screenshot 2024-12-02 at 12 12 47 PM
data "ibm_is_images" "testacc_images" {
  name = "ibm-centos-stream-9-amd64-9"
}
Screenshot 2024-12-02 at 12 14 49 PM

@SunithaGudisagarIBM1
Copy link
Collaborator Author

data "ibm_is_image_instance_profiles" "testacc_image_instance_profiles" {
  identifier = "r134-0950e619-325e-446e-b895-e0bdd21dd1ea"
}
Screenshot 2024-12-02 at 12 16 52 PM

@SunithaGudisagarIBM1
Copy link
Collaborator Author

data "ibm_is_image_bare_metal_server_profiles" "testacc_image_bare_metal_server_profiles" {
  identifier = "r134-0950e619-325e-446e-b895-e0bdd21dd1ea"
}
Screenshot 2024-12-02 at 12 18 11 PM

@SunithaGudisagarIBM1
Copy link
Collaborator Author

SunithaGudisagarIBM1 commented Dec 2, 2024

resource "ibm_is_volume" "storage" {
  name            = "tfp-test-image-cap1"
  profile         = "general-purpose"
  zone            = "us-south-2"
  source_snapshot = "r134-d72184df-c6ab-4c01-9b54-e1c9b3d64e99"
  allowed_use {
    api_version       = "2020-12-02"
    bare_metal_server = "enable_secure_boot>=true"
    instance          = "enable_secure_boot==true"
  }
}
Screenshot 2024-12-02 at 2 44 39 PM Screenshot 2024-12-02 at 2 44 56 PM
resource "ibm_is_volume" "storage" {
  name            = "tfp-test-image-cap1"
  profile         = "general-purpose"
  zone            = "us-south-2"
  source_snapshot = "r134-d72184df-c6ab-4c01-9b54-e1c9b3d64e99"
  allowed_use {
    api_version       = "2024-12-02"
    bare_metal_server = "enable_secure_boot==true"
    instance          = "enable_secure_boot==true"
  }
}
Screenshot 2024-12-02 at 2 45 53 PM Screenshot 2024-12-02 at 2 46 10 PM

@SunithaGudisagarIBM1
Copy link
Collaborator Author

data "ibm_is_volume_instance_profiles" "is_volume_instance_profiles_instance" {
    identifier = "r134-f6f6f0be-5e4c-441e-8563-621958fefe3c"
}
Screenshot 2025-01-15 at 2 40 56 PM

@SunithaGudisagarIBM1
Copy link
Collaborator Author

data "ibm_is_snapshot_instance_profiles" "testacc_snapshot_instance_profiles" {
  identifier = "r134-d72184df-c6ab-4c01-9b54-e1c9b3d64e99"
}
Screenshot 2025-01-15 at 2 42 59 PM

Copy link
Collaborator

@uibm uibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants