@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
68 lines • 2.46 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getClusterAuthOutput = exports.getClusterAuth = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get an authentication token to communicate with an EKS cluster.
*
* Uses IAM credentials from the AWS provider to generate a temporary token that is compatible with
* [AWS IAM Authenticator](https://github.com/kubernetes-sigs/aws-iam-authenticator) authentication.
* This can be used to authenticate to an EKS cluster or to a cluster that has the AWS IAM Authenticator
* server configured.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.eks.getCluster({
* name: "example",
* });
* const exampleGetClusterAuth = aws.eks.getClusterAuth({
* name: "example",
* });
* ```
*/
function getClusterAuth(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:eks/getClusterAuth:getClusterAuth", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getClusterAuth = getClusterAuth;
/**
* Get an authentication token to communicate with an EKS cluster.
*
* Uses IAM credentials from the AWS provider to generate a temporary token that is compatible with
* [AWS IAM Authenticator](https://github.com/kubernetes-sigs/aws-iam-authenticator) authentication.
* This can be used to authenticate to an EKS cluster or to a cluster that has the AWS IAM Authenticator
* server configured.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.eks.getCluster({
* name: "example",
* });
* const exampleGetClusterAuth = aws.eks.getClusterAuth({
* name: "example",
* });
* ```
*/
function getClusterAuthOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:eks/getClusterAuth:getClusterAuth", {
"name": args.name,
"region": args.region,
}, opts);
}
exports.getClusterAuthOutput = getClusterAuthOutput;
//# sourceMappingURL=getClusterAuth.js.map