1. Packages
  2. Yandex
  3. API Docs
  4. IamServiceAccountStaticAccessKey
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.IamServiceAccountStaticAccessKey

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Allows management of Yandex.Cloud IAM service account static access keys. Generated pair of keys is used to access Yandex Object Storage on behalf of service account.

    Before using keys do not forget to assign a proper role to the service account.

    Example Usage

    This snippet creates a service account static access key.

    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var sa_static_key = new Yandex.IamServiceAccountStaticAccessKey("sa-static-key", new Yandex.IamServiceAccountStaticAccessKeyArgs
            {
                Description = "static access key for object storage",
                PgpKey = "keybase:keybaseusername",
                ServiceAccountId = "some_sa_id",
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := yandex.NewIamServiceAccountStaticAccessKey(ctx, "sa-static-key", &yandex.IamServiceAccountStaticAccessKeyArgs{
    			Description:      pulumi.String("static access key for object storage"),
    			PgpKey:           pulumi.String("keybase:keybaseusername"),
    			ServiceAccountId: pulumi.String("some_sa_id"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_yandex as yandex
    
    sa_static_key = yandex.IamServiceAccountStaticAccessKey("sa-static-key",
        description="static access key for object storage",
        pgp_key="keybase:keybaseusername",
        service_account_id="some_sa_id")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as yandex from "@pulumi/yandex";
    
    const sa_static_key = new yandex.IamServiceAccountStaticAccessKey("sa-static-key", {
        description: "static access key for object storage",
        pgpKey: "keybase:keybaseusername",
        serviceAccountId: "some_sa_id",
    });
    

    Coming soon!

    Create IamServiceAccountStaticAccessKey Resource

    new IamServiceAccountStaticAccessKey(name: string, args: IamServiceAccountStaticAccessKeyArgs, opts?: CustomResourceOptions);
    @overload
    def IamServiceAccountStaticAccessKey(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         description: Optional[str] = None,
                                         pgp_key: Optional[str] = None,
                                         service_account_id: Optional[str] = None)
    @overload
    def IamServiceAccountStaticAccessKey(resource_name: str,
                                         args: IamServiceAccountStaticAccessKeyArgs,
                                         opts: Optional[ResourceOptions] = None)
    func NewIamServiceAccountStaticAccessKey(ctx *Context, name string, args IamServiceAccountStaticAccessKeyArgs, opts ...ResourceOption) (*IamServiceAccountStaticAccessKey, error)
    public IamServiceAccountStaticAccessKey(string name, IamServiceAccountStaticAccessKeyArgs args, CustomResourceOptions? opts = null)
    public IamServiceAccountStaticAccessKey(String name, IamServiceAccountStaticAccessKeyArgs args)
    public IamServiceAccountStaticAccessKey(String name, IamServiceAccountStaticAccessKeyArgs args, CustomResourceOptions options)
    
    type: yandex:IamServiceAccountStaticAccessKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args IamServiceAccountStaticAccessKeyArgs
    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 IamServiceAccountStaticAccessKeyArgs
    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 IamServiceAccountStaticAccessKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamServiceAccountStaticAccessKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamServiceAccountStaticAccessKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    IamServiceAccountStaticAccessKey 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 IamServiceAccountStaticAccessKey resource accepts the following input properties:

    ServiceAccountId string
    ID of the service account which is used to get a static key.
    Description string
    The description of the service account static key.
    PgpKey string
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    ServiceAccountId string
    ID of the service account which is used to get a static key.
    Description string
    The description of the service account static key.
    PgpKey string
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    serviceAccountId String
    ID of the service account which is used to get a static key.
    description String
    The description of the service account static key.
    pgpKey String
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    serviceAccountId string
    ID of the service account which is used to get a static key.
    description string
    The description of the service account static key.
    pgpKey string
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    service_account_id str
    ID of the service account which is used to get a static key.
    description str
    The description of the service account static key.
    pgp_key str
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    serviceAccountId String
    ID of the service account which is used to get a static key.
    description String
    The description of the service account static key.
    pgpKey String
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.

    Outputs

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

    AccessKey string
    ID of the static access key.
    CreatedAt string
    Creation timestamp of the static access key.
    EncryptedSecretKey string
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyFingerprint string
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    SecretKey string
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    AccessKey string
    ID of the static access key.
    CreatedAt string
    Creation timestamp of the static access key.
    EncryptedSecretKey string
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyFingerprint string
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    SecretKey string
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    accessKey String
    ID of the static access key.
    createdAt String
    Creation timestamp of the static access key.
    encryptedSecretKey String
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    id String
    The provider-assigned unique ID for this managed resource.
    keyFingerprint String
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    secretKey String
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    accessKey string
    ID of the static access key.
    createdAt string
    Creation timestamp of the static access key.
    encryptedSecretKey string
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    id string
    The provider-assigned unique ID for this managed resource.
    keyFingerprint string
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    secretKey string
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    access_key str
    ID of the static access key.
    created_at str
    Creation timestamp of the static access key.
    encrypted_secret_key str
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    id str
    The provider-assigned unique ID for this managed resource.
    key_fingerprint str
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    secret_key str
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    accessKey String
    ID of the static access key.
    createdAt String
    Creation timestamp of the static access key.
    encryptedSecretKey String
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    id String
    The provider-assigned unique ID for this managed resource.
    keyFingerprint String
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    secretKey String
    Private part of generated static access key. This is only populated when no pgp_key is provided.

    Look up Existing IamServiceAccountStaticAccessKey Resource

    Get an existing IamServiceAccountStaticAccessKey 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?: IamServiceAccountStaticAccessKeyState, opts?: CustomResourceOptions): IamServiceAccountStaticAccessKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_key: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            encrypted_secret_key: Optional[str] = None,
            key_fingerprint: Optional[str] = None,
            pgp_key: Optional[str] = None,
            secret_key: Optional[str] = None,
            service_account_id: Optional[str] = None) -> IamServiceAccountStaticAccessKey
    func GetIamServiceAccountStaticAccessKey(ctx *Context, name string, id IDInput, state *IamServiceAccountStaticAccessKeyState, opts ...ResourceOption) (*IamServiceAccountStaticAccessKey, error)
    public static IamServiceAccountStaticAccessKey Get(string name, Input<string> id, IamServiceAccountStaticAccessKeyState? state, CustomResourceOptions? opts = null)
    public static IamServiceAccountStaticAccessKey get(String name, Output<String> id, IamServiceAccountStaticAccessKeyState 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:
    AccessKey string
    ID of the static access key.
    CreatedAt string
    Creation timestamp of the static access key.
    Description string
    The description of the service account static key.
    EncryptedSecretKey string
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    KeyFingerprint string
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    PgpKey string
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    SecretKey string
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    ServiceAccountId string
    ID of the service account which is used to get a static key.
    AccessKey string
    ID of the static access key.
    CreatedAt string
    Creation timestamp of the static access key.
    Description string
    The description of the service account static key.
    EncryptedSecretKey string
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    KeyFingerprint string
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    PgpKey string
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    SecretKey string
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    ServiceAccountId string
    ID of the service account which is used to get a static key.
    accessKey String
    ID of the static access key.
    createdAt String
    Creation timestamp of the static access key.
    description String
    The description of the service account static key.
    encryptedSecretKey String
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    keyFingerprint String
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    pgpKey String
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    secretKey String
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    serviceAccountId String
    ID of the service account which is used to get a static key.
    accessKey string
    ID of the static access key.
    createdAt string
    Creation timestamp of the static access key.
    description string
    The description of the service account static key.
    encryptedSecretKey string
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    keyFingerprint string
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    pgpKey string
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    secretKey string
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    serviceAccountId string
    ID of the service account which is used to get a static key.
    access_key str
    ID of the static access key.
    created_at str
    Creation timestamp of the static access key.
    description str
    The description of the service account static key.
    encrypted_secret_key str
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    key_fingerprint str
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    pgp_key str
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    secret_key str
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    service_account_id str
    ID of the service account which is used to get a static key.
    accessKey String
    ID of the static access key.
    createdAt String
    Creation timestamp of the static access key.
    description String
    The description of the service account static key.
    encryptedSecretKey String
    The encrypted secret, base64 encoded. This is only populated when pgp_key is supplied.
    keyFingerprint String
    The fingerprint of the PGP key used to encrypt the secret key. This is only populated when pgp_key is supplied.
    pgpKey String
    An optional PGP key to encrypt the resulting secret key material. May either be a base64-encoded public key or a keybase username in the form keybase:keybaseusername.
    secretKey String
    Private part of generated static access key. This is only populated when no pgp_key is provided.
    serviceAccountId String
    ID of the service account which is used to get a static key.

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi