Creates and manages Scaleway Apple silicon runners.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const main = new scaleway.applesilicon.Runner("main", {
name: "my-github-runner",
ciProvider: "github",
url: "https://github.com/my-org/my-repo",
token: "my-token",
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.applesilicon.Runner("main",
name="my-github-runner",
ci_provider="github",
url="https://github.com/my-org/my-repo",
token="my-token")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/applesilicon"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := applesilicon.NewRunner(ctx, "main", &applesilicon.RunnerArgs{
Name: pulumi.String("my-github-runner"),
CiProvider: pulumi.String("github"),
Url: pulumi.String("https://github.com/my-org/my-repo"),
Token: pulumi.String("my-token"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.Applesilicon.Runner("main", new()
{
Name = "my-github-runner",
CiProvider = "github",
Url = "https://github.com/my-org/my-repo",
Token = "my-token",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.applesilicon.Runner;
import com.pulumi.scaleway.applesilicon.RunnerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new Runner("main", RunnerArgs.builder()
.name("my-github-runner")
.ciProvider("github")
.url("https://github.com/my-org/my-repo")
.token("my-token")
.build());
}
}
resources:
main:
type: scaleway:applesilicon:Runner
properties:
name: my-github-runner
ciProvider: github
url: https://github.com/my-org/my-repo
token: my-token
Create Runner Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Runner(name: string, args: RunnerArgs, opts?: CustomResourceOptions);@overload
def Runner(resource_name: str,
args: RunnerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Runner(resource_name: str,
opts: Optional[ResourceOptions] = None,
ci_provider: Optional[str] = None,
token: Optional[str] = None,
url: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
zone: Optional[str] = None)func NewRunner(ctx *Context, name string, args RunnerArgs, opts ...ResourceOption) (*Runner, error)public Runner(string name, RunnerArgs args, CustomResourceOptions? opts = null)
public Runner(String name, RunnerArgs args)
public Runner(String name, RunnerArgs args, CustomResourceOptions options)
type: scaleway:applesilicon:Runner
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RunnerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RunnerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RunnerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RunnerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RunnerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var runnerResource = new Scaleway.Applesilicon.Runner("runnerResource", new()
{
CiProvider = "string",
Token = "string",
Url = "string",
Name = "string",
ProjectId = "string",
Zone = "string",
});
example, err := applesilicon.NewRunner(ctx, "runnerResource", &applesilicon.RunnerArgs{
CiProvider: pulumi.String("string"),
Token: pulumi.String("string"),
Url: pulumi.String("string"),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var runnerResource = new Runner("runnerResource", RunnerArgs.builder()
.ciProvider("string")
.token("string")
.url("string")
.name("string")
.projectId("string")
.zone("string")
.build());
runner_resource = scaleway.applesilicon.Runner("runnerResource",
ci_provider="string",
token="string",
url="string",
name="string",
project_id="string",
zone="string")
const runnerResource = new scaleway.applesilicon.Runner("runnerResource", {
ciProvider: "string",
token: "string",
url: "string",
name: "string",
projectId: "string",
zone: "string",
});
type: scaleway:applesilicon:Runner
properties:
ciProvider: string
name: string
projectId: string
token: string
url: string
zone: string
Runner Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Runner resource accepts the following input properties:
- Ci
Provider string - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- Token string
- The token used to authenticate the runner to run
- Url string
- The URL of the runner to run
- Name string
- The name of the runner
- Project
Id string - The project_id you want to attach the resource to
- Zone string
- The zone of the runner
- Ci
Provider string - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- Token string
- The token used to authenticate the runner to run
- Url string
- The URL of the runner to run
- Name string
- The name of the runner
- Project
Id string - The project_id you want to attach the resource to
- Zone string
- The zone of the runner
- ci
Provider String - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- token String
- The token used to authenticate the runner to run
- url String
- The URL of the runner to run
- name String
- The name of the runner
- project
Id String - The project_id you want to attach the resource to
- zone String
- The zone of the runner
- ci
Provider string - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- token string
- The token used to authenticate the runner to run
- url string
- The URL of the runner to run
- name string
- The name of the runner
- project
Id string - The project_id you want to attach the resource to
- zone string
- The zone of the runner
- ci_
provider str - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- token str
- The token used to authenticate the runner to run
- url str
- The URL of the runner to run
- name str
- The name of the runner
- project_
id str - The project_id you want to attach the resource to
- zone str
- The zone of the runner
- ci
Provider String - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- token String
- The token used to authenticate the runner to run
- url String
- The URL of the runner to run
- name String
- The name of the runner
- project
Id String - The project_id you want to attach the resource to
- zone String
- The zone of the runner
Outputs
All input properties are implicitly available as output properties. Additionally, the Runner resource produces the following output properties:
- Error
Message string - The error message if the runner is in error state
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels List<string>
- A list of labels applied to the runner. Only for github provider
- Status string
- The status of the runner
- Error
Message string - The error message if the runner is in error state
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels []string
- A list of labels applied to the runner. Only for github provider
- Status string
- The status of the runner
- error
Message String - The error message if the runner is in error state
- id String
- The provider-assigned unique ID for this managed resource.
- labels List<String>
- A list of labels applied to the runner. Only for github provider
- status String
- The status of the runner
- error
Message string - The error message if the runner is in error state
- id string
- The provider-assigned unique ID for this managed resource.
- labels string[]
- A list of labels applied to the runner. Only for github provider
- status string
- The status of the runner
- error_
message str - The error message if the runner is in error state
- id str
- The provider-assigned unique ID for this managed resource.
- labels Sequence[str]
- A list of labels applied to the runner. Only for github provider
- status str
- The status of the runner
- error
Message String - The error message if the runner is in error state
- id String
- The provider-assigned unique ID for this managed resource.
- labels List<String>
- A list of labels applied to the runner. Only for github provider
- status String
- The status of the runner
Look up Existing Runner Resource
Get an existing Runner resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RunnerState, opts?: CustomResourceOptions): Runner@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ci_provider: Optional[str] = None,
error_message: Optional[str] = None,
labels: Optional[Sequence[str]] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
status: Optional[str] = None,
token: Optional[str] = None,
url: Optional[str] = None,
zone: Optional[str] = None) -> Runnerfunc GetRunner(ctx *Context, name string, id IDInput, state *RunnerState, opts ...ResourceOption) (*Runner, error)public static Runner Get(string name, Input<string> id, RunnerState? state, CustomResourceOptions? opts = null)public static Runner get(String name, Output<String> id, RunnerState state, CustomResourceOptions options)resources: _: type: scaleway:applesilicon:Runner get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ci
Provider string - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- Error
Message string - The error message if the runner is in error state
- Labels List<string>
- A list of labels applied to the runner. Only for github provider
- Name string
- The name of the runner
- Project
Id string - The project_id you want to attach the resource to
- Status string
- The status of the runner
- Token string
- The token used to authenticate the runner to run
- Url string
- The URL of the runner to run
- Zone string
- The zone of the runner
- Ci
Provider string - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- Error
Message string - The error message if the runner is in error state
- Labels []string
- A list of labels applied to the runner. Only for github provider
- Name string
- The name of the runner
- Project
Id string - The project_id you want to attach the resource to
- Status string
- The status of the runner
- Token string
- The token used to authenticate the runner to run
- Url string
- The URL of the runner to run
- Zone string
- The zone of the runner
- ci
Provider String - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- error
Message String - The error message if the runner is in error state
- labels List<String>
- A list of labels applied to the runner. Only for github provider
- name String
- The name of the runner
- project
Id String - The project_id you want to attach the resource to
- status String
- The status of the runner
- token String
- The token used to authenticate the runner to run
- url String
- The URL of the runner to run
- zone String
- The zone of the runner
- ci
Provider string - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- error
Message string - The error message if the runner is in error state
- labels string[]
- A list of labels applied to the runner. Only for github provider
- name string
- The name of the runner
- project
Id string - The project_id you want to attach the resource to
- status string
- The status of the runner
- token string
- The token used to authenticate the runner to run
- url string
- The URL of the runner to run
- zone string
- The zone of the runner
- ci_
provider str - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- error_
message str - The error message if the runner is in error state
- labels Sequence[str]
- A list of labels applied to the runner. Only for github provider
- name str
- The name of the runner
- project_
id str - The project_id you want to attach the resource to
- status str
- The status of the runner
- token str
- The token used to authenticate the runner to run
- url str
- The URL of the runner to run
- zone str
- The zone of the runner
- ci
Provider String - The CI/CD provider for the runner. Must be either 'github' or 'gitlab'
- error
Message String - The error message if the runner is in error state
- labels List<String>
- A list of labels applied to the runner. Only for github provider
- name String
- The name of the runner
- project
Id String - The project_id you want to attach the resource to
- status String
- The status of the runner
- token String
- The token used to authenticate the runner to run
- url String
- The URL of the runner to run
- zone String
- The zone of the runner
Import
Runner can be imported using the {zone}/{id}, e.g.
bash
$ pulumi import scaleway:applesilicon/runner:Runner main fr-par-1/11111111-1111-1111-1111-111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
