This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE NOTIFICATION INTEGRATION TASK_ERROR_NOTIFICATIONS | |
ENABLED = true | |
TYPE = QUEUE | |
NOTIFICATION_PROVIDER = AWS_SNS | |
DIRECTION = OUTBOUND | |
AWS_SNS_TOPIC_ARN = 'arn:aws:sns:eu-central-1:123456789012345:dp-tools-slack-notifier-alarm' | |
AWS_SNS_ROLE_ARN = 'arn:aws:iam::123456789012345:role/dp-tools-snowflake-tasks-error-notifications'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE ROLE data_engineer; | |
-- Create external stage | |
CREATE OR REPLACE STAGE DP_DEV.STAGE.DP_DEV_DATA_INBOUND_TEST | |
STORAGE_INTEGRATION = DP_INGESTION_DEV | |
URL = 's3://dp-dev-data-inbound-test/' | |
; | |
-- List files in external stage | |
LIST @DP_DEV.STAGE.DP_DEV_DATA_INBOUND_TEST; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE ROLE USERADMIN; | |
GRANT OWNERSHIP ON USER USER_ID TO ROLE AAD_PROVISIONER; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM TABLE(rest_event_history( | |
'scim', | |
DATEADD('minutes',-3600,CURRENT_TIMESTAMP()), | |
CURRENT_TIMESTAMP(), | |
200)) | |
WHERE details like '%FORBIDDEN%' | |
AND DATE_TRUNC('DAY', event_timestamp) = '2022-08-10' | |
ORDER BY event_timestamp DESC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Testing connection to Data Platform - Snowflake | |
You appear to have entered invalid credentials. Please confirm you are using the correct information for an administrative account. | |
Error code: SystemForCrossDomainIdentityManagementCredentialValidationUnavailable | |
Details: We received this unexpected response from your application: | |
Received response from Web resource. | |
Resource: https://XXXXXXXXX.eu-central-1.snowflakecomputing.com/scim/v2/Groups?excludedAttributes=members&filter=displayName+eq+"AzureAD_Test-7bfddc58-2c65-44a8-b556-3fd6bf9d7763" | |
Operation: GET | |
Response Status Code: Forbidden |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT SYSTEM$GENERATE_SCIM_ACCESS_TOKEN('AAD_PROVISIONING'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE ROLE accountadmin; | |
CREATE ROLE IF NOT EXISTS aad_provisioner; | |
GRANT CREATE USER ON ACCOUNT TO ROLE aad_provisioner; | |
GRANT CREATE ROLE ON ACCOUNT TO ROLE aad_provisioner; | |
GRANT ROLE aad_provisioner TO ROLE accountadmin; | |
CREATE OR REPLACE SECURITY INTEGRATION aad_provisioning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wsl --list --online |