mirror of
https://github.com/FlipsideCrypto/blast-models.git
synced 2026-02-06 16:01:55 +00:00
prod
This commit is contained in:
parent
5d9186eb4b
commit
86e4d46db4
@ -2,16 +2,14 @@
|
||||
{{ log(
|
||||
"Creating integration for target:" ~ target
|
||||
) }}
|
||||
{# {% if target.name == "prod" %}
|
||||
{% if target.name == "prod" %}
|
||||
{% set sql %}
|
||||
CREATE api integration IF NOT EXISTS aws_blast_api api_provider = aws_api_gateway api_aws_role_arn = 'insert-prod-arn-here' api_allowed_prefixes = (
|
||||
'insert-prod-url-here'
|
||||
CREATE api integration IF NOT EXISTS aws_blast_api api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::924682671219:role/blast-api-prod-rolesnowflakeudfsAF733095-DY5ob2RfHqOI' api_allowed_prefixes = (
|
||||
'https://42gzudc5si.execute-api.us-east-1.amazonaws.com/prod/'
|
||||
) enabled = TRUE;
|
||||
{% endset %}
|
||||
{% do run_query(sql) %}
|
||||
#}
|
||||
{% if target.name == "dev" %}
|
||||
--replace if with elif after prod is deployed
|
||||
{% elif target.name == "dev" %}
|
||||
{% set sql %}
|
||||
CREATE api integration IF NOT EXISTS aws_blast_api_dev api_provider = aws_api_gateway api_aws_role_arn = 'arn:aws:iam::704693948482:role/blast-api-dev-rolesnowflakeudfsAF733095-Wtkj0DGJ7lOQ' api_allowed_prefixes = (
|
||||
'https://05340o05al.execute-api.us-east-1.amazonaws.com/dev/'
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
json OBJECT
|
||||
) returns ARRAY api_integration =
|
||||
{% if target.name == "prod" %}
|
||||
aws_blast_api AS 'insert-prod-url-here'
|
||||
aws_blast_api AS 'https://42gzudc5si.execute-api.us-east-1.amazonaws.com/prod/udf_bulk_rest_api'
|
||||
{% else %}
|
||||
aws_blast_api_dev AS 'https://05340o05al.execute-api.us-east-1.amazonaws.com/dev/udf_bulk_rest_api'
|
||||
{%- endif %};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user