Skip to content

LEGO/pulumi-link-mobility-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

fc86a54 · Jul 26, 2024

History

15 Commits
Jul 26, 2024
Jul 23, 2024
Jul 23, 2024
Jul 25, 2024
Jul 25, 2024
Apr 12, 2024
Apr 12, 2024
Apr 12, 2024
Jul 26, 2024
Apr 12, 2024
Apr 12, 2024
Apr 17, 2024
Apr 12, 2024
Jul 23, 2024
Jul 26, 2024
Jul 25, 2024
Jul 23, 2024
Jul 23, 2024

Repository files navigation

CI npm version License

pulumi-link-mobility-provider

A pulumi custom provider that allows you to create, update and delete destinations in Link Mobility's partner gate.

Installation

To use from JavaScript or TypeScript in Node.js, install using either npm:

npm install @lego/pulumi-link-mobility-provider

or yarn:

yarn add @lego/pulumi-link-mobility-provider

Usage

const provider = new LinkMobilityPartnerGateDestinationProvider({
  username: 'myGateUsername',
  password: 'myNotSoSecretPassword',
  url: 'https://n-eu.linkmobility.io',
  partner: 'myPartner',
  platform: 'myPlatform',
});

new LinkMobilityPartnerGateDestination('link-mobility-foo-bar-destination', {
  provider: provider,
  partnerGateId: 'myPartnerGateId',
  destination: {
    url: 'https://foo.bar',
    contentType: 'application/json',
    // Username & password
    username: 'fooBarUsername',
    password: 'myEvenWorsePassword',
    // Custom auth with API Key header
    customParameters: {
      'http.header1': `x-my-secret-header:myApiKey`,
    },
  },
});

Caution

It is highly recommended you do NOT leave your passwords/API-keys in clear text, but instead store them as secrets in your Pulumi project. For the sake of showing an example they have been left in clear text here.

Contribution

This project welcomes contributions and suggestions. Would you like to contribute to the project? Learn how to contribute here.

License

Modified Apache 2.0 (Section 6)

Open Source Attribution

Project Dependencies

Dev Dependencies

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 2