alert-balloon-36955
09/17/2024, 5:54 PMfast-ram-96156
09/18/2024, 8:57 PM# Example SQL to create a view in Redshift
create_view_sql = """
CREATE VIEW example_view AS
SELECT
*
FROM
some_table
WHERE
some_column = 'some_value';
"""
# Command to execute the SQL on the Redshift cluster
create_view = command.remote.Command("createView",
connection=command.remote.ConnectionArgs(
host=cluster_endpoint,
user="yourusername",
password="yourpassword"
),
create=create_view_sql)
Basically executing some SQL via Pulumi