Skip to content

How can I get all avaiable public image id{/name} for planing compute instances? #1966

Answered by jveraduran
alissa-tung asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @alissa-tung!

I use terraform and reference a custom image on this way

data "huaweicloud_images_image" "bastion" {
  name        = "bastion"
  most_recent = true
}

I let you a public module for reference https://github.com/smu-chile/terraform-huawei-bastion-module/blob/master/bastion.tf

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by niuzhenguo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants