Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.25 KB

KongService.md

File metadata and controls

35 lines (27 loc) · 1.25 KB

Custom::KongService

The Custom::KongService creates a Kong Service

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

Type: Custom::KongService
Properties:
  AdminUrl: String
  JWT:
    Issuer: String
    PrivateKeyParameterName: String
  ServiceToken: String
  Service: {}

Properties

You can specify the following properties:

"AdminUrl" - pointing to the Kong Admin  (required).
"JWT" - RS256 JWT token generator configuration (optional)
"JWT.Issuer" - issuer of the JWT token, defaults to 'admin'.
"JWT.PrivateKeyParameterName" - parameter store name containing the private key to sign the token with (required)
"ServiceToken" - pointing to the function implementing this resource (required)
"Service" - object containing all the properties as defined by Kong add-service, except `url` (required).

Check out all properties for "Service" at add-service.

Return values

With 'Fn::GetAtt' the following values are available:

  • id - id of the Service in Kong.

For more information about using Fn::GetAtt, see Fn::GetAtt.