UNPKG

@goldstack/infra-aws

Version:

Utilities to work with AWS infrastructure via the cli.

24 lines 1.77 kB
import type { AWSConfiguration, AWSUser, AWSProfileConfig, AWSAPIKeyUserConfig, AWSAccessKeyId, AWSSecretAccessKey, Name } from './types/awsAccount'; import type { AwsCredentialIdentityProvider } from '@aws-sdk/types'; import type { AWSTerraformState, RemoteState } from './types/awsTerraformState'; import type { AWSRegion, AWSEnvironmentVariableUserConfig } from './types/awsAccount'; export type { AWSConfiguration, AWSUser, AWSRegion, AWSAccessKeyId, AWSSecretAccessKey, AWSProfileConfig as AWSLocalUserConfig, AWSAPIKeyUserConfig as AWSAPIKeyUser, AWSEnvironmentVariableUserConfig, AWSTerraformState, RemoteState, }; import type { AWSDeployment } from './types/awsDeployment'; export type { AWSDeployment, AWSDeploymentRegion, AWSUserName, } from './types/awsDeployment'; export { getAWSCredentials } from './awsAuthUtils'; export declare const readDeploymentFromPackageConfig: (deploymentName: string, path?: string) => AWSDeployment; export declare const assertTerraformConfig: (user: Name, path?: string) => AWSTerraformState; export declare const writeTerraformConfig: (config: AWSTerraformState, path?: string) => void; export declare const hasConfig: (path?: string) => boolean; export declare const readConfig: (path?: string) => AWSConfiguration; export declare const writeConfig: (config: AWSConfiguration, path?: string) => void; export declare const createDefaultConfig: () => AWSConfiguration; /** * Resets the environment variables set after obtaining AWS user. */ export declare const resetAWSUser: () => void; /** * Obtains AWS user credentials from config file or environment variables. */ export declare const getAWSUser: (userName: string, configPath?: string) => Promise<AwsCredentialIdentityProvider>; //# sourceMappingURL=infraAws.d.ts.map