![]() Supplying a key in the encryptionKey property. You can specify the encryption key used for this purpose by Will generate a username and password, store the credentials in a AWS Secrets ManagerĪnd make a query to the Redshift cluster to create a new database user with theīy default, the user credentials are encrypted with your AWS account's default Secrets Was generated by the CDK application (ie., no value vas provided for the masterPasswordĬreate a user within a Redshift cluster database by instantiating a User construct. However, this option is only available if the password for the credentials Alternatively, the credentials can beĪutomatically pulled from the Redshift cluster's default administratorĬredentials. Of the various database resource constructs. These database credentials can be supplied explicitly through the adminUser properties ![]() In addition to the IAM permissions required to make Redshift serviceĬalls, the execution role for the custom resource handler requires database credentials to Within your Redshift cluster from your CDK application.īecause these resources are not available in CloudFormation, this library leverages This allows you to manage identities, permissions, and stateful resources This module allows for the creation of non-CloudFormation database resources such as usersĪnd tables. clusterEndpoint attribute: cluster.cluster_endpoint.socket_address The endpoint to access your database cluster will be available as the. Redshift Clusters haveĪ default port, so you don't need to specify the port: _default_port_from_any_ipv4( "Open to the world") To control who can access the cluster, use the. To change the name of this database set the defaultDatabaseName attribute in the constructor properties.īy default, the cluster will not be publicly accessible.ĭepending on your use case, you can make the cluster publicly accessible with the publiclyAccessible property. import aws_cdk.aws_ec2 as ec2īy default, the master password will be generated and stored in AWS Secrets Manager.Ī default database named default_db will be created in the cluster. The nodes are always launched in private subnets and are encrypted by default. You can specify a VPC, otherwise one will be created. To set up a Redshift cluster, define a Cluster. > For more information on how to migrate, see the Migrating to AWS CDK v2 guide. > This package is no longer being updated, and users should migrate to AWS CDK v2. ![]() AWS CDK v1 has reached End-of-Support on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |