Support for private REST API Gateways #87
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Cirrus and STAC server API Gateways may now be set to PRIVATE rather than always being set to EDGE. If private, the necessary VPC endpoint (and associated resource) configuration will be handled automatically.
Related issue(s)
Proposed Changes
api_rest_type
input variable is now exposed at the root level for bothcirrus_inputs
andstac_server_inputs
config objects and is propagated through to thecirrus
andstac-server
modules. This allows the default ofEDGE
to be overwritten.PRIVATE
, the following ancillary resources are created within that module:execute-api:Invoke
permissions for the API Gateway. Only traffic from the new VPC endpoint is allowed.stac_server_api_domain_name
has been updated to account for a private API Gateway endpoint (the domain name must include the VPCe ID).Note that the VPCe used for private stac-server and cirrus API Gateways will not use private DNS resolution as there can only be one interface endpoint per service with private DNS enabled; instead, the APIs will need to be invoked using their API Gateway + associated VPCe URL. A custom domain name may also be configured outside of the module as needed; such configuration is beyond the scope of this module.
Testing
This change was validated by the following observations:
...
Checklist