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 PulumiNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by