Skip to content

Enabling CloudFront on API Gateway component #3

Answered by roleyfoley
roleyfoley asked this question in Q&A
Discussion options

You must be logged in to vote

Looking through the setup for the APIGateway and it looks like the x-api-key value is provided through a setting

https://github.com/roleyfoley/engine-plugin-aws/blob/a5e95e9972c63c3d28eab027f4e2ffcec830f4d0/aws/components/apigateway/setup.ftl

The getOccurrenceSettingValue function takes an array of setting keys and then creates merged settings keys that the function looks for. So for the API Key it will look for the following setting being available for the occurrence

  • APIGATEWAY_API_ACCESSKEY
  • API_ACCESSKEY
  • ACCESSKEY

So setting one of these should fix up the error

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by roleyfoley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant