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

doppler.integration.Flyio

Explore with Pulumi AI

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

    Manage a Fly.io Doppler integration.

    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,
              api_key: Optional[str] = None,
              name: 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:integration: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 flyioResource = new Doppler.Integration.Flyio("flyioResource", new()
    {
        ApiKey = "string",
        Name = "string",
    });
    
    example, err := integration.NewFlyio(ctx, "flyioResource", &integration.FlyioArgs{
    	ApiKey: pulumi.String("string"),
    	Name:   pulumi.String("string"),
    })
    
    var flyioResource = new Flyio("flyioResource", FlyioArgs.builder()
        .apiKey("string")
        .name("string")
        .build());
    
    flyio_resource = doppler.integration.Flyio("flyioResource",
        api_key="string",
        name="string")
    
    const flyioResource = new doppler.integration.Flyio("flyioResource", {
        apiKey: "string",
        name: "string",
    });
    
    type: doppler:integration:Flyio
    properties:
        apiKey: string
        name: string
    

    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:

    ApiKey string
    A Fly.io API key.
    Name string
    The name of the integration
    ApiKey string
    A Fly.io API key.
    Name string
    The name of the integration
    apiKey String
    A Fly.io API key.
    name String
    The name of the integration
    apiKey string
    A Fly.io API key.
    name string
    The name of the integration
    api_key str
    A Fly.io API key.
    name str
    The name of the integration
    apiKey String
    A Fly.io API key.
    name String
    The name of the integration

    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,
            api_key: Optional[str] = None,
            name: Optional[str] = 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:
    ApiKey string
    A Fly.io API key.
    Name string
    The name of the integration
    ApiKey string
    A Fly.io API key.
    Name string
    The name of the integration
    apiKey String
    A Fly.io API key.
    name String
    The name of the integration
    apiKey string
    A Fly.io API key.
    name string
    The name of the integration
    api_key str
    A Fly.io API key.
    name str
    The name of the integration
    apiKey String
    A Fly.io API key.
    name String
    The name of the integration

    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