qovery.ScalewayCredentials
Explore with Pulumi AI
# qovery.ScalewayCredentials (Resource)
Provides a Qovery SCALEWAY credentials resource. This can be used to create and manage Qovery SCALEWAY credentials.
Example
import * as pulumi from "@pulumi/pulumi";
import * as qovery from "@ediri/qovery";
const myScalewayCreds = new qovery.ScalewayCredentials("myScalewayCreds", {
organizationId: qovery_organization.my_organization.id,
scalewayAccessKey: "<your-scaleway-access-key>",
scalewaySecretKey: "<your-scaleway-secret-key>",
scalewayProjectId: "<your-scaleway-project-id>",
}, {
dependsOn: [qovery_organization.my_organization],
});
import pulumi
import ediri_qovery as qovery
my_scaleway_creds = qovery.ScalewayCredentials("myScalewayCreds",
organization_id=qovery_organization["my_organization"]["id"],
scaleway_access_key="<your-scaleway-access-key>",
scaleway_secret_key="<your-scaleway-secret-key>",
scaleway_project_id="<your-scaleway-project-id>",
opts = pulumi.ResourceOptions(depends_on=[qovery_organization["my_organization"]]))
package main
import (
"github.com/dirien/pulumi-qovery/sdk/go/qovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := qovery.NewScalewayCredentials(ctx, "myScalewayCreds", &qovery.ScalewayCredentialsArgs{
OrganizationId: pulumi.Any(qovery_organization.My_organization.Id),
ScalewayAccessKey: pulumi.String("<your-scaleway-access-key>"),
ScalewaySecretKey: pulumi.String("<your-scaleway-secret-key>"),
ScalewayProjectId: pulumi.String("<your-scaleway-project-id>"),
}, pulumi.DependsOn([]pulumi.Resource{
qovery_organization.My_organization,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Qovery = ediri.Qovery;
return await Deployment.RunAsync(() =>
{
var myScalewayCreds = new Qovery.ScalewayCredentials("myScalewayCreds", new()
{
OrganizationId = qovery_organization.My_organization.Id,
ScalewayAccessKey = "<your-scaleway-access-key>",
ScalewaySecretKey = "<your-scaleway-secret-key>",
ScalewayProjectId = "<your-scaleway-project-id>",
}, new CustomResourceOptions
{
DependsOn =
{
qovery_organization.My_organization,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.ScalewayCredentials;
import com.pulumi.qovery.ScalewayCredentialsArgs;
import com.pulumi.resources.CustomResourceOptions;
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 myScalewayCreds = new ScalewayCredentials("myScalewayCreds", ScalewayCredentialsArgs.builder()
.organizationId(qovery_organization.my_organization().id())
.scalewayAccessKey("<your-scaleway-access-key>")
.scalewaySecretKey("<your-scaleway-secret-key>")
.scalewayProjectId("<your-scaleway-project-id>")
.build(), CustomResourceOptions.builder()
.dependsOn(qovery_organization.my_organization())
.build());
}
}
resources:
myScalewayCreds:
type: qovery:ScalewayCredentials
properties:
# Required
organizationId: ${qovery_organization.my_organization.id}
scalewayAccessKey: <your-scaleway-access-key>
scalewaySecretKey: <your-scaleway-secret-key>
scalewayProjectId: <your-scaleway-project-id>
options:
dependson:
- ${qovery_organization.my_organization}
Create ScalewayCredentials Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScalewayCredentials(name: string, args: ScalewayCredentialsArgs, opts?: CustomResourceOptions);
@overload
def ScalewayCredentials(resource_name: str,
args: ScalewayCredentialsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScalewayCredentials(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
scaleway_access_key: Optional[str] = None,
scaleway_organization_id: Optional[str] = None,
scaleway_project_id: Optional[str] = None,
scaleway_secret_key: Optional[str] = None,
name: Optional[str] = None)
func NewScalewayCredentials(ctx *Context, name string, args ScalewayCredentialsArgs, opts ...ResourceOption) (*ScalewayCredentials, error)
public ScalewayCredentials(string name, ScalewayCredentialsArgs args, CustomResourceOptions? opts = null)
public ScalewayCredentials(String name, ScalewayCredentialsArgs args)
public ScalewayCredentials(String name, ScalewayCredentialsArgs args, CustomResourceOptions options)
type: qovery:ScalewayCredentials
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 ScalewayCredentialsArgs
- 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 ScalewayCredentialsArgs
- 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 ScalewayCredentialsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalewayCredentialsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalewayCredentialsArgs
- 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 scalewayCredentialsResource = new Qovery.ScalewayCredentials("scalewayCredentialsResource", new()
{
OrganizationId = "string",
ScalewayAccessKey = "string",
ScalewayOrganizationId = "string",
ScalewayProjectId = "string",
ScalewaySecretKey = "string",
Name = "string",
});
example, err := qovery.NewScalewayCredentials(ctx, "scalewayCredentialsResource", &qovery.ScalewayCredentialsArgs{
OrganizationId: pulumi.String("string"),
ScalewayAccessKey: pulumi.String("string"),
ScalewayOrganizationId: pulumi.String("string"),
ScalewayProjectId: pulumi.String("string"),
ScalewaySecretKey: pulumi.String("string"),
Name: pulumi.String("string"),
})
var scalewayCredentialsResource = new ScalewayCredentials("scalewayCredentialsResource", ScalewayCredentialsArgs.builder()
.organizationId("string")
.scalewayAccessKey("string")
.scalewayOrganizationId("string")
.scalewayProjectId("string")
.scalewaySecretKey("string")
.name("string")
.build());
scaleway_credentials_resource = qovery.ScalewayCredentials("scalewayCredentialsResource",
organization_id="string",
scaleway_access_key="string",
scaleway_organization_id="string",
scaleway_project_id="string",
scaleway_secret_key="string",
name="string")
const scalewayCredentialsResource = new qovery.ScalewayCredentials("scalewayCredentialsResource", {
organizationId: "string",
scalewayAccessKey: "string",
scalewayOrganizationId: "string",
scalewayProjectId: "string",
scalewaySecretKey: "string",
name: "string",
});
type: qovery:ScalewayCredentials
properties:
name: string
organizationId: string
scalewayAccessKey: string
scalewayOrganizationId: string
scalewayProjectId: string
scalewaySecretKey: string
ScalewayCredentials 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 ScalewayCredentials resource accepts the following input properties:
- Organization
Id string - Id of the organization.
- Scaleway
Access stringKey - Your SCALEWAY access key id.
- Scaleway
Organization stringId - Your SCALEWAY organization ID.
- Scaleway
Project stringId - Your SCALEWAY project ID.
- Scaleway
Secret stringKey - Your SCALEWAY secret key.
- Name string
- Name of the scaleway credentials.
- Organization
Id string - Id of the organization.
- Scaleway
Access stringKey - Your SCALEWAY access key id.
- Scaleway
Organization stringId - Your SCALEWAY organization ID.
- Scaleway
Project stringId - Your SCALEWAY project ID.
- Scaleway
Secret stringKey - Your SCALEWAY secret key.
- Name string
- Name of the scaleway credentials.
- organization
Id String - Id of the organization.
- scaleway
Access StringKey - Your SCALEWAY access key id.
- scaleway
Organization StringId - Your SCALEWAY organization ID.
- scaleway
Project StringId - Your SCALEWAY project ID.
- scaleway
Secret StringKey - Your SCALEWAY secret key.
- name String
- Name of the scaleway credentials.
- organization
Id string - Id of the organization.
- scaleway
Access stringKey - Your SCALEWAY access key id.
- scaleway
Organization stringId - Your SCALEWAY organization ID.
- scaleway
Project stringId - Your SCALEWAY project ID.
- scaleway
Secret stringKey - Your SCALEWAY secret key.
- name string
- Name of the scaleway credentials.
- organization_
id str - Id of the organization.
- scaleway_
access_ strkey - Your SCALEWAY access key id.
- scaleway_
organization_ strid - Your SCALEWAY organization ID.
- scaleway_
project_ strid - Your SCALEWAY project ID.
- scaleway_
secret_ strkey - Your SCALEWAY secret key.
- name str
- Name of the scaleway credentials.
- organization
Id String - Id of the organization.
- scaleway
Access StringKey - Your SCALEWAY access key id.
- scaleway
Organization StringId - Your SCALEWAY organization ID.
- scaleway
Project StringId - Your SCALEWAY project ID.
- scaleway
Secret StringKey - Your SCALEWAY secret key.
- name String
- Name of the scaleway credentials.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalewayCredentials 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 ScalewayCredentials Resource
Get an existing ScalewayCredentials 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?: ScalewayCredentialsState, opts?: CustomResourceOptions): ScalewayCredentials
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
scaleway_access_key: Optional[str] = None,
scaleway_organization_id: Optional[str] = None,
scaleway_project_id: Optional[str] = None,
scaleway_secret_key: Optional[str] = None) -> ScalewayCredentials
func GetScalewayCredentials(ctx *Context, name string, id IDInput, state *ScalewayCredentialsState, opts ...ResourceOption) (*ScalewayCredentials, error)
public static ScalewayCredentials Get(string name, Input<string> id, ScalewayCredentialsState? state, CustomResourceOptions? opts = null)
public static ScalewayCredentials get(String name, Output<String> id, ScalewayCredentialsState 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.
- Name string
- Name of the scaleway credentials.
- Organization
Id string - Id of the organization.
- Scaleway
Access stringKey - Your SCALEWAY access key id.
- Scaleway
Organization stringId - Your SCALEWAY organization ID.
- Scaleway
Project stringId - Your SCALEWAY project ID.
- Scaleway
Secret stringKey - Your SCALEWAY secret key.
- Name string
- Name of the scaleway credentials.
- Organization
Id string - Id of the organization.
- Scaleway
Access stringKey - Your SCALEWAY access key id.
- Scaleway
Organization stringId - Your SCALEWAY organization ID.
- Scaleway
Project stringId - Your SCALEWAY project ID.
- Scaleway
Secret stringKey - Your SCALEWAY secret key.
- name String
- Name of the scaleway credentials.
- organization
Id String - Id of the organization.
- scaleway
Access StringKey - Your SCALEWAY access key id.
- scaleway
Organization StringId - Your SCALEWAY organization ID.
- scaleway
Project StringId - Your SCALEWAY project ID.
- scaleway
Secret StringKey - Your SCALEWAY secret key.
- name string
- Name of the scaleway credentials.
- organization
Id string - Id of the organization.
- scaleway
Access stringKey - Your SCALEWAY access key id.
- scaleway
Organization stringId - Your SCALEWAY organization ID.
- scaleway
Project stringId - Your SCALEWAY project ID.
- scaleway
Secret stringKey - Your SCALEWAY secret key.
- name str
- Name of the scaleway credentials.
- organization_
id str - Id of the organization.
- scaleway_
access_ strkey - Your SCALEWAY access key id.
- scaleway_
organization_ strid - Your SCALEWAY organization ID.
- scaleway_
project_ strid - Your SCALEWAY project ID.
- scaleway_
secret_ strkey - Your SCALEWAY secret key.
- name String
- Name of the scaleway credentials.
- organization
Id String - Id of the organization.
- scaleway
Access StringKey - Your SCALEWAY access key id.
- scaleway
Organization StringId - Your SCALEWAY organization ID.
- scaleway
Project StringId - Your SCALEWAY project ID.
- scaleway
Secret StringKey - Your SCALEWAY secret key.
Import
$ pulumi import qovery:index/scalewayCredentials:ScalewayCredentials my_scaleway_creds "<organization_id>,<scaleway_credentials_id>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
qovery
Terraform Provider.