@lego/pulumi-link-mobility-provider
v1.0.5
Published
A custom provider used to create resources within the Link Mobility Platform
Downloads
46
Keywords
Readme
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)