1. Packages
  2. Doppler
  3. API Docs
  4. secretsSync
  5. Flyio
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

doppler.secretsSync.Flyio

Explore with Pulumi AI

doppler logo
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

    Manage a Fly.io Doppler sync.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as doppler from "@pulumiverse/doppler";
    
    const prod = new doppler.integration.Flyio("prod", {
        name: "TF Fly.io",
        apiKey: "fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    });
    const backendProd = new doppler.secretssync.Flyio("backend_prod", {
        integration: prod.id,
        project: "backend",
        config: "prd",
        appId: "my-app",
        restartMachines: true,
        deleteBehavior: "leave_in_target",
    });
    
    import pulumi
    import pulumiverse_doppler as doppler
    
    prod = doppler.integration.Flyio("prod",
        name="TF Fly.io",
        api_key="fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
    backend_prod = doppler.secrets_sync.Flyio("backend_prod",
        integration=prod.id,
        project="backend",
        config="prd",
        app_id="my-app",
        restart_machines=True,
        delete_behavior="leave_in_target")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/integration"
    	"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler/secretsSync"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		prod, err := integration.NewFlyio(ctx, "prod", &integration.FlyioArgs{
    			Name:   pulumi.String("TF Fly.io"),
    			ApiKey: pulumi.String("fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = secretsSync.NewFlyio(ctx, "backend_prod", &secretsSync.FlyioArgs{
    			Integration:     prod.ID(),
    			Project:         pulumi.String("backend"),
    			Config:          pulumi.String("prd"),
    			AppId:           pulumi.String("my-app"),
    			RestartMachines: pulumi.Bool(true),
    			DeleteBehavior:  pulumi.String("leave_in_target"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Doppler = Pulumiverse.Doppler;
    
    return await Deployment.RunAsync(() => 
    {
        var prod = new Doppler.Integration.Flyio("prod", new()
        {
            Name = "TF Fly.io",
            ApiKey = "fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        });
    
        var backendProd = new Doppler.SecretsSync.Flyio("backend_prod", new()
        {
            Integration = prod.Id,
            Project = "backend",
            Config = "prd",
            AppId = "my-app",
            RestartMachines = true,
            DeleteBehavior = "leave_in_target",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.doppler.integration.Flyio;
    import com.pulumi.doppler.integration.FlyioArgs;
    import com.pulumi.doppler.secretsSync.Flyio;
    import com.pulumi.doppler.secretsSync.FlyioArgs;
    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 prod = new Flyio("prod", FlyioArgs.builder()
                .name("TF Fly.io")
                .apiKey("fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
                .build());
    
            var backendProd = new Flyio("backendProd", FlyioArgs.builder()
                .integration(prod.id())
                .project("backend")
                .config("prd")
                .appId("my-app")
                .restartMachines(true)
                .deleteBehavior("leave_in_target")
                .build());
    
        }
    }
    
    resources:
      prod:
        type: doppler:integration:Flyio
        properties:
          name: TF Fly.io
          apiKey: fo1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      backendProd:
        type: doppler:secretsSync:Flyio
        name: backend_prod
        properties:
          integration: ${prod.id}
          project: backend
          config: prd
          appId: my-app
          restartMachines: true
          deleteBehavior: leave_in_target
    

    Create Flyio Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Flyio(name: string, args: FlyioArgs, opts?: CustomResourceOptions);
    @overload
    def Flyio(resource_name: str,
              args: FlyioArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Flyio(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              app_id: Optional[str] = None,
              config: Optional[str] = None,
              integration: Optional[str] = None,
              project: Optional[str] = None,
              restart_machines: Optional[bool] = None,
              delete_behavior: Optional[str] = None)
    func NewFlyio(ctx *Context, name string, args FlyioArgs, opts ...ResourceOption) (*Flyio, error)
    public Flyio(string name, FlyioArgs args, CustomResourceOptions? opts = null)
    public Flyio(String name, FlyioArgs args)
    public Flyio(String name, FlyioArgs args, CustomResourceOptions options)
    
    type: doppler:secretsSync:Flyio
    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 FlyioArgs
    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 FlyioArgs
    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 FlyioArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FlyioArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FlyioArgs
    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 dopplerFlyioResource = new Doppler.SecretsSync.Flyio("dopplerFlyioResource", new()
    {
        AppId = "string",
        Config = "string",
        Integration = "string",
        Project = "string",
        RestartMachines = false,
        DeleteBehavior = "string",
    });
    
    example, err := secretsSync.NewFlyio(ctx, "dopplerFlyioResource", &secretsSync.FlyioArgs{
    	AppId:           pulumi.String("string"),
    	Config:          pulumi.String("string"),
    	Integration:     pulumi.String("string"),
    	Project:         pulumi.String("string"),
    	RestartMachines: pulumi.Bool(false),
    	DeleteBehavior:  pulumi.String("string"),
    })
    
    var dopplerFlyioResource = new Flyio("dopplerFlyioResource", FlyioArgs.builder()
        .appId("string")
        .config("string")
        .integration("string")
        .project("string")
        .restartMachines(false)
        .deleteBehavior("string")
        .build());
    
    doppler_flyio_resource = doppler.secrets_sync.Flyio("dopplerFlyioResource",
        app_id="string",
        config="string",
        integration="string",
        project="string",
        restart_machines=False,
        delete_behavior="string")
    
    const dopplerFlyioResource = new doppler.secretssync.Flyio("dopplerFlyioResource", {
        appId: "string",
        config: "string",
        integration: "string",
        project: "string",
        restartMachines: false,
        deleteBehavior: "string",
    });
    
    type: doppler:secretsSync:Flyio
    properties:
        appId: string
        config: string
        deleteBehavior: string
        integration: string
        project: string
        restartMachines: false
    

    Flyio Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Flyio resource accepts the following input properties:

    AppId string
    The app ID
    Config string
    The name of the Doppler config
    Integration string
    The slug of the integration to use for this sync
    Project string
    The name of the Doppler project
    RestartMachines bool
    Whether or not to restart the Fly.io machines when secrets are updated
    DeleteBehavior string
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    AppId string
    The app ID
    Config string
    The name of the Doppler config
    Integration string
    The slug of the integration to use for this sync
    Project string
    The name of the Doppler project
    RestartMachines bool
    Whether or not to restart the Fly.io machines when secrets are updated
    DeleteBehavior string
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    appId String
    The app ID
    config String
    The name of the Doppler config
    integration String
    The slug of the integration to use for this sync
    project String
    The name of the Doppler project
    restartMachines Boolean
    Whether or not to restart the Fly.io machines when secrets are updated
    deleteBehavior String
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    appId string
    The app ID
    config string
    The name of the Doppler config
    integration string
    The slug of the integration to use for this sync
    project string
    The name of the Doppler project
    restartMachines boolean
    Whether or not to restart the Fly.io machines when secrets are updated
    deleteBehavior string
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    app_id str
    The app ID
    config str
    The name of the Doppler config
    integration str
    The slug of the integration to use for this sync
    project str
    The name of the Doppler project
    restart_machines bool
    Whether or not to restart the Fly.io machines when secrets are updated
    delete_behavior str
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    appId String
    The app ID
    config String
    The name of the Doppler config
    integration String
    The slug of the integration to use for this sync
    project String
    The name of the Doppler project
    restartMachines Boolean
    Whether or not to restart the Fly.io machines when secrets are updated
    deleteBehavior String
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Flyio resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Flyio Resource

    Get an existing Flyio 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?: FlyioState, opts?: CustomResourceOptions): Flyio
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[str] = None,
            config: Optional[str] = None,
            delete_behavior: Optional[str] = None,
            integration: Optional[str] = None,
            project: Optional[str] = None,
            restart_machines: Optional[bool] = None) -> Flyio
    func GetFlyio(ctx *Context, name string, id IDInput, state *FlyioState, opts ...ResourceOption) (*Flyio, error)
    public static Flyio Get(string name, Input<string> id, FlyioState? state, CustomResourceOptions? opts = null)
    public static Flyio get(String name, Output<String> id, FlyioState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AppId string
    The app ID
    Config string
    The name of the Doppler config
    DeleteBehavior string
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    Integration string
    The slug of the integration to use for this sync
    Project string
    The name of the Doppler project
    RestartMachines bool
    Whether or not to restart the Fly.io machines when secrets are updated
    AppId string
    The app ID
    Config string
    The name of the Doppler config
    DeleteBehavior string
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    Integration string
    The slug of the integration to use for this sync
    Project string
    The name of the Doppler project
    RestartMachines bool
    Whether or not to restart the Fly.io machines when secrets are updated
    appId String
    The app ID
    config String
    The name of the Doppler config
    deleteBehavior String
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    integration String
    The slug of the integration to use for this sync
    project String
    The name of the Doppler project
    restartMachines Boolean
    Whether or not to restart the Fly.io machines when secrets are updated
    appId string
    The app ID
    config string
    The name of the Doppler config
    deleteBehavior string
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    integration string
    The slug of the integration to use for this sync
    project string
    The name of the Doppler project
    restartMachines boolean
    Whether or not to restart the Fly.io machines when secrets are updated
    app_id str
    The app ID
    config str
    The name of the Doppler config
    delete_behavior str
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    integration str
    The slug of the integration to use for this sync
    project str
    The name of the Doppler project
    restart_machines bool
    Whether or not to restart the Fly.io machines when secrets are updated
    appId String
    The app ID
    config String
    The name of the Doppler config
    deleteBehavior String
    The behavior to be performed on the secrets in the sync target when this resource is deleted or recreated. Either leave_in_target (default) or delete_from_target.
    integration String
    The slug of the integration to use for this sync
    project String
    The name of the Doppler project
    restartMachines Boolean
    Whether or not to restart the Fly.io machines when secrets are updated

    Package Details

    Repository
    doppler pulumiverse/pulumi-doppler
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the doppler Terraform Provider.
    doppler logo
    Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse