pulumi-htpasswd
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Pulumi Htpasswd

A pulumi resource for generating Htpasswd files.

Installation

npm install --save --save-exact pulumi-htpasswd

Example

import { Htpasswd } from 'pulumi-htpasswd';

const credentials = new Htpasswd('credentials', {
    algorithm: HtpasswdAlgorithm.Bcrypt,
    entries: [{
        // example with a specific username + password
        username: 'user1',
        password: 'mypassword',
    }, {
        // example where the password will be generated
        username: 'user2',
    }],
});

// the resulting htpasswd file
export const htpasswdFile = credentials.result;

// the plaintext entries that
export const plaintextEntries = credentials.plaintextEntries

Readme

Keywords

none

Package Sidebar

Install

npm i pulumi-htpasswd

Weekly Downloads

1,169

Version

1.3.0

License

MIT

Unpacked Size

20.4 kB

Total Files

8

Last publish

Collaborators

  • place1