-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
A silly change for trying out cloud builds #120709
Conversation
Sweet! Looks like this works via terraform as well terraform {
required_providers {
ec = {
source = "elastic/ec"
version = "0.3.0"
}
}
}
provider "ec" {
apikey = "(redacted, also best read from $EC_API_KEY)"
}
resource "ec_deployment" "docker_override" {
region = "gcp-us-west2"
version = "8.1.0-SNAPSHOT"
deployment_template_id = "gcp-io-optimized-v2"
elasticsearch {
topology {
id = "hot_content"
size = "8g"
}
}
kibana {
config {
docker_image = "docker.elastic.co/kibana-ci/kibana-cloud:8.1.0-SNAPSHOT-cf3adadb14bd9caa8b9a1b71e11cd0993c45fb72"
}
}
} |
And cdktf too import { Construct } from "constructs";
import { App, TerraformStack } from "cdktf";
import { EcProvider, Deployment } from "./.gen/providers/ec";
class MyStack extends TerraformStack {
constructor(scope: Construct, name: string) {
super(scope, name);
new EcProvider(this, "ec", {
apikey: "(redacted, also best read from $EC_API_KEY)",
});
new Deployment(this, "main", {
region: "gcp-us-west2",
version: "8.1.0-SNAPSHOT",
deploymentTemplateId: "gcp-io-optimized-v2",
elasticsearch: {
topology: [
{
id: "hot_content",
size: "8g",
},
],
},
kibana: {
config: {
dockerImage:
"docker.elastic.co/kibana-ci/kibana-cloud:8.1.0-SNAPSHOT-cf3adadb14bd9caa8b9a1b71e11cd0993c45fb72",
},
},
});
}
}
const app = new App();
new MyStack(app, "cdktftest");
app.synth(); |
I was unable to book kibana due to a config handling problem introduced #120110, but the API requests for the above configurations were successful. |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @matschaffer |
Closing this down since I've confirmed it works. Will follow up with possible guide updates for future work. |
Summary
Not for merge. Just wanted to take the ci:deploy-cloud label for a test drive.
Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers