-
Notifications
You must be signed in to change notification settings - Fork 127
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
Unable to handle scaleway_image due to returned more than one result problem #81
Comments
Hey @Edke , I'm sorry for this issue. I've looked at the result of the Scaleway API for images with Ubuntu Xenial in their name -
I think we should introduce a |
Hi @nicolai86 Is there a way using terraform itself to see results of API ? Of course one can to an raw API call using any HTTP client but is this possible to do within terraform for easy solving and fetching ID quickly to go on ? |
So even I know ID seems that I can't use it anyway. As in scaleway_server resource as image I can't use UUID of image directly, is that right ? |
@Edke you can use the UUID directly. |
Trying to apply resource "scaleway_server" "pharos_master" {
name = "pharos_master"
image = "d52d15d6-1658-4c48-89b0-234a8bb10652"
type = "VC1S"
} And have response:
|
@Edke you must be in the par1 region, your above example works for me in ams1 |
@nicolai86 oh, got it, every datacentre has it's own images |
Hi there,
trying to create servers with Ubuntu Xenial image but failing as can't find way to define name of image as
Ubuntu Xenial
throws errorWith use of
scw
can't solve problem either as this tool provides only ID which does not work and other that that there is only Repository field but that is notname
used in API query:Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
The server instance should be created.
Actual Behavior
Unable to lookup Ubuntu Xenial image
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: