mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
- Removed the unused external access SQL file to streamline the project structure. - Updated the S3 express external access integration macro by eliminating unnecessary schema usage. - Adjusted dependencies in the utils SQL file to reflect the removal of the external access integration.
23 lines
750 B
SQL
23 lines
750 B
SQL
{% macro create_s3_express_external_access_integration() %}
|
|
{% set network_rule_sql %}
|
|
CREATE NETWORK RULE IF NOT EXISTS s3_express_network_rule
|
|
MODE = EGRESS
|
|
TYPE = HOST_PORT
|
|
VALUE_LIST = (
|
|
'*.s3express-use1-az4.us-east-1.amazonaws.com:443',
|
|
'*.s3express-use1-az5.us-east-1.amazonaws.com:443',
|
|
'*.s3express-use1-az6.us-east-1.amazonaws.com:443'
|
|
)
|
|
{% endset %}
|
|
|
|
{% set external_access_sql %}
|
|
CREATE EXTERNAL ACCESS INTEGRATION IF NOT EXISTS s3_express_external_access_integration
|
|
ALLOWED_NETWORK_RULES = (s3_express_network_rule)
|
|
ENABLED = true
|
|
{% endset %}
|
|
|
|
{% do run_query(use_schema_sql) %}
|
|
{% do run_query(network_rule_sql) %}
|
|
{% do run_query(external_access_sql) %}
|
|
{% endmacro %}
|