Open sudipju opened 4 years ago
Hi, thanks for the issue.
Tbh, we generate our own private image, you can too (as it is written in https://github.com/AckeeCZ/terraform-gcp-elasticsearch/blob/master/README.md) just follow instruction at this repository https://github.com/AckeeCZ/packer-elasticsearch
We are going to create an option which could provision whole instance with just bootstrap.sh
script but the basic idea of this repository was to deploy the image we already have.
Now, I have built the packer image and come forward. Thanks for the same. Encountering another issue: Error: Error creating instance: googleapi: Error 400: Invalid value for field 'resource.disks[0].initializeParams.diskSizeGb': '10'. Requested disk size cannot be smaller than the image size (20 GB), invalid
though you see, we have defined disk size as 200 GB. data_disk_size = "200"
This strongly depends on the current GCP policy. A while ago the minimum was 10 GB, I guess that changed. Thanks for the info.
We have used like following in a main.tf and trying to use your module: module "elasticsearch" { source = "AckeeCZ/elasticsearch/gcp" version = "8.2.0"
insert the 10 required variables here
cluster_name = "audit" region = var.region data_disk_size = "200" project = var.project cluster_user = "admin" cluster_password = "some" instance_name = "elasticsearch" cluster_endpoint = "elasticsearch" cluster_ca_certificate = file("${path.module}/elasticsearch-cert.pem") }
But encountering following error: module.elasticsearch.google_compute_image.elasticsearch: Still creating... [10s elapsed]
Error: Error waiting to create Image: Error waiting for Creating Image: Required 'read' permission for 'https://storage.googleapis.com/ackee-images/ackee-elasticsearch-7-disk-79.tar.gz'
Could you please help