User-Provided Metadata
Usage
package spacelift
sample { true }SPACELIFT_LAUNCHER_RUN_INITIALIZATION_POLICY=/path/to/your/policy.rego~> spacectl stack deploy --id testing-spacelift --run-metadata "deploy-metadata"
You have successfully created a deployment
The live run can be visited at http://cube2222.app.spacelift.tf/stack/testing-spacelift/run/01FEKAGP4AYV0DWP4QDFTANRES{
"caller": "setup.go:201",
"level": "info",
"msg": "Sample 0/INITIALIZATION/7YGHCNF7W6VMBQ49XQ42MH4JD1/allow",
"sample": {
"body": "package spacelift\nsample { true }\n",
"input": {
"docker_image": "",
"run": {
"based_on_local_workspace": false,
"changes": [],
"commit": {
"author": "cube2222",
"branch": "master",
"created_at": 1628243895000000000,
"message": "Update main.tf"
},
"created_at": 1630588655754344000,
"id": "01FEKAGP4AYV0DWP4QDFTANRES",
"state": "PREPARING",
"triggered_by": "api::01FEGXFB7TWQ2NNF95W7HPRE2E",
"updated_at": 1630588656197898500,
"user_provided_metadata": [ // <------------------
"deploy-metadata". // <-- the metadata --
] // <------------------
},
"static_run_environment": {
"account_name": "cube2222",
"auto_deploy": false,
"before_apply": null,
"before_init": null,
"command": "",
"commit_branch": "master",
"commit_sha": "7d629c6c3f3b6da07e28a87727f0586e577d98c1",
"endpoint_logs": "tcp://169.254.0.3:1983",
"endpoint_registry": "registry.spacelift.io",
"environment_variables": {},
"project_root": "",
"refresh_state": true,
"repository_path": "cube2222/testing-spacelift",
"run_type": "TRACKED",
"run_ulid": "01FEKAGP4AYV0DWP4QDFTANRES",
"skip_init": false,
"stack_labels": null,
"stack_slug": "testing-spacelift",
"terraform_version": "0.14.10",
"vendor_specific_config": {
"vendor": "terraform",
"typed_config": {
"use_terragrunt": false,
"use_infracost": false
}
}
},
"worker_version": "development"
},
"outcome": "allow",
"results": {
"deny": [],
"sample": true
},
"error": ""
},
"ts": "2021-09-02T13:17:37.785219048Z"
}Run signatures
Last updated
Was this helpful?