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