|
| 1 | +--- |
| 2 | +subcategory: "Edge Services" |
| 3 | +page_title: "Scaleway: scaleway_edge_services_pipeline" |
| 4 | +--- |
| 5 | + |
| 6 | +# Resource: scaleway_edge_services_pipeline |
| 7 | + |
| 8 | +Creates and manages Scaleway Edge Services Pipelines. |
| 9 | + |
| 10 | +## Example Usage |
| 11 | + |
| 12 | +### Basic |
| 13 | + |
| 14 | +```terraform |
| 15 | +resource "scaleway_edge_services_pipeline" "main" { |
| 16 | + name = "pipeline-name" |
| 17 | + description = "pipeline description" |
| 18 | +} |
| 19 | +``` |
| 20 | + |
| 21 | +### Complete pipeline |
| 22 | + |
| 23 | +```terraform |
| 24 | +resource "scaleway_edge_services_backend_stage" "main" { |
| 25 | + s3_backend_config { |
| 26 | + bucket_name = "my-bucket-name" |
| 27 | + bucket_region = "fr-par" |
| 28 | + } |
| 29 | +} |
| 30 | +
|
| 31 | +resource "scaleway_edge_services_tls_stage" "main" { |
| 32 | + cache_stage_id = scaleway_edge_services_cache_stage.main.id |
| 33 | + managed_certificate = true |
| 34 | +} |
| 35 | +
|
| 36 | +resource "scaleway_edge_services_dns_stage" "main" { |
| 37 | + tls_stage_id = scaleway_edge_services_tls_stage.main.id |
| 38 | + fqdns = ["subdomain.example.com"] |
| 39 | +} |
| 40 | +
|
| 41 | +resource "scaleway_edge_services_pipeline" "main" { |
| 42 | + name = "my-edge_services-pipeline" |
| 43 | + dns_stage_id = scaleway_edge_services_dns_stage.main.id |
| 44 | +} |
| 45 | +
|
| 46 | +resource "scaleway_edge_services_cache_stage" "main" { |
| 47 | + backend_stage_id = scaleway_edge_services_backend_stage.main.id |
| 48 | +} |
| 49 | +``` |
| 50 | + |
| 51 | +## Argument Reference |
| 52 | + |
| 53 | +- `name` - (Optional) The name of the pipeline. |
| 54 | +- `description` - (Optional) The description of the pipeline. |
| 55 | +- `dns_stage_id` - (Optional) The DNS stage ID the pipeline will be attached to. |
| 56 | +- `project_id` - (Defaults to [provider](../index.md#project_id) `project_id`) The ID of the project the pipeline is associated with. |
| 57 | + |
| 58 | +## Attributes Reference |
| 59 | + |
| 60 | +In addition to all arguments above, the following attributes are exported: |
| 61 | + |
| 62 | +- `id` - The ID of the pipeline (UUID format). |
| 63 | +- `created_at` - The date and time of the creation of the pipeline. |
| 64 | +- `updated_at` - The date and time of the last update of the pipeline. |
| 65 | +- `status` - The status of user pipeline. |
| 66 | + |
| 67 | +## Import |
| 68 | + |
| 69 | +Pipelines can be imported using the `{id}`, e.g. |
| 70 | + |
| 71 | +```bash |
| 72 | +$ terraform import scaleway_edge_services_pipeline.basic 11111111-1111-1111-1111-111111111111 |
| 73 | +``` |
0 commit comments