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

ibm_is_image resource should have a checksum sha256 output #2161

Closed
powellquiring opened this issue Jan 12, 2021 · 3 comments
Closed

ibm_is_image resource should have a checksum sha256 output #2161

powellquiring opened this issue Jan 12, 2021 · 3 comments
Assignees
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@powellquiring
Copy link

These resources should have sha256 output parameters

resource "ibm_is_image" "test_is_images" {}
data "ibm_is_image" "ds_image" {
    name = "centos-7.x-amd64"
}

See https://cloud.ibm.com/docs/vpc?topic=vpc-managing-images#validate-custom

Example output from cli

is images --output json

    {
        "created_at": "2021-01-12T14:38:29.000Z",
        "crn": "crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::image:r006-e9021f4e-4a06-46c3-9cd6-ab6fa234e2f6",
        "deprecated_at": null,
        "encryption": "none",
        "file": {
            "checksums": {
                "sha256": "4e5141142764574260914edd0702048df33efbb039272a8610234675428cf763"
            },
            "size": 1
        },
        "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-e9021f4e-4a06-46c3-9cd6-ab6fa234e2f6",
        "id": "r006-e9021f4e-4a06-46c3-9cd6-ab6fa234e2f6",
        "minimum_provisioned_size": 100,
        "name": "custom-bionic-server-cloudimg-amd64",
...
    },


Example cli output:

➜  linux git:(master) is image r006-e9021f4e-4a06-46c3-9cd6-ab6fa234e2f6
Getting image r006-e9021f4e-4a06-46c3-9cd6-ab6fa234e2f6 under account Powell Quiring's Account as user [email protected]...

ID                 r006-e9021f4e-4a06-46c3-9cd6-ab6fa234e2f6
Name               custom-bionic-server-cloudimg-amd64
CRN                crn:v1:bluemix:public:is:us-south:a/713c783d9a507a53135fe6793c37cc74::image:r006-e9021f4e-4a06-46c3-9cd6-ab6fa234e2f6
Status             available
Operating system   Name                 Architecture   Vendor      Version
                   ubuntu-18-04-amd64   amd64          Canonical   18.04 LTS Bionic Beaver Minimal Install

Created            2021-01-12T06:38:29-08:00
Visibility         private
SHA256 Checksum    4e5141142764574260914edd0702048df33efbb039272a8610234675428cf763
File size(GB)      1
Encryption         none
Resource group     b6503f25836d49029966ab5be7fe50b5
@hkantare hkantare added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Jan 13, 2021
@astha-jain
Copy link
Contributor

We are waiting for the production spec to release image checksums.

@kavya498
Copy link
Collaborator

Fixed in latest

@kavya498
Copy link
Collaborator

Closing this issue..
thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants