-
-
Save tkamag/72c9984721cd2703bc8e26f8f4e1ca79 to your computer and use it in GitHub Desktop.
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
| import boto3 | |
| def create_redshift_cluster(cluster_identifier, node_type, | |
| master_username, master_password, | |
| database_name): | |
| redshift_client = boto3.client('redshift') | |
| response = redshift_client.create_cluster( | |
| ClusterIdentifier=cluster_identifier, | |
| NodeType=node_type, | |
| MasterUsername=master_username, | |
| MasterUserPassword=master_password, | |
| DBName=database_name, | |
| # Add other parameters as needed | |
| ) | |
| return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment