arbitrum-models/macros/streamline/api_integrations.sql
Ryan-Loofy e663710c90
An 3213/an 3214/an 3215/arbitrum streamline (#54)
* Arbitrum Streamline

* Update batches and run time

* Update complete models, update actions

* Update .github/workflows/dbt_run_streamline_history.yml

Co-authored-by: Shah Newaz Khan <shahnewazk@gmail.com>

* Update XXX and batching

---------

Co-authored-by: Shah Newaz Khan <shahnewazk@gmail.com>
2023-05-31 15:00:59 -04:00

12 lines
540 B
SQL

{% macro create_aws_arbitrum_api() %}
{% if target.name == "prod" %}
{% set sql %}
CREATE api integration IF NOT EXISTS aws_arbitrum_api api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::490041342817:role/snowflake-api-arbitrum' api_allowed_prefixes = (
'https://sby17ramp4.execute-api.us-east-1.amazonaws.com/prod/',
'https://lz7pjsdoa4.execute-api.us-east-1.amazonaws.com/dev/'
) enabled = TRUE;
{% endset %}
{% do run_query(sql) %}
{% endif %}
{% endmacro %}