@@ -239,3 +239,121 @@ exports[`ApplicationRDSCluster renders a RDS cluster with a database URL 1`] = `
239239 }
240240} "
241241` ;
242+
243+ exports [` ApplicationRDSCluster renders a RDS cluster without a name 1` ] = `
244+ "{
245+ " data" : {
246+ " aws_vpc" : {
247+ " testRDSCluster_vpc_F47EEEFE" : {
248+ " filter" : [
249+ {
250+ " name" : " vpc-id" ,
251+ " values" : [
252+ " rug"
253+ ]
254+ }
255+ ]
256+ }
257+ }
258+ },
259+ " resource" : {
260+ " aws_db_subnet_group" : {
261+ " testRDSCluster_rds_subnet_group_88022457" : {
262+ " subnet_ids" : [
263+ " 0" ,
264+ " 1"
265+ ],
266+ " tags" : {
267+ " whodis" : " walter"
268+ }
269+ }
270+ },
271+ " aws_rds_cluster" : {
272+ " testRDSCluster_rds_cluster_B5FD08B5" : {
273+ " copy_tags_to_snapshot" : true ,
274+ " database_name" : " walter" ,
275+ " db_subnet_group_name" : " \$ {aws_db_subnet_group.testRDSCluster_rds_subnet_group_88022457.name}" ,
276+ " engine" : " aurora-mysql" ,
277+ " lifecycle" : {
278+ " ignore_changes" : [
279+ " master_username" ,
280+ " master_password"
281+ ]
282+ },
283+ " master_password" : " bowling" ,
284+ " master_username" : " walter" ,
285+ " tags" : {
286+ " whodis" : " walter"
287+ },
288+ " vpc_security_group_ids" : [
289+ " \$ {aws_security_group.testRDSCluster_rds_security_group_4A9D257E.id}"
290+ ]
291+ }
292+ },
293+ " aws_secretsmanager_secret" : {
294+ " testRDSCluster_rds_secret_A2014138" : {
295+ " depends_on" : [
296+ " aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5"
297+ ],
298+ " description" : " Secret For \$ {aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.cluster_identifier}" ,
299+ " name" : " bowling-/\$ {aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.cluster_identifier}" ,
300+ " tags" : {
301+ " whodis" : " walter"
302+ }
303+ }
304+ },
305+ " aws_secretsmanager_secret_version" : {
306+ " testRDSCluster_rds_secret_version_55C44893" : {
307+ " depends_on" : [
308+ " aws_secretsmanager_secret.testRDSCluster_rds_secret_A2014138"
309+ ],
310+ " secret_id" : " \$ {aws_secretsmanager_secret.testRDSCluster_rds_secret_A2014138.id}" ,
311+ " secret_string" : " {\\ " engine \\" :\\ " aurora - mysql \\" ,\\ " host \\" :\\ " \$ {aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.endpoint }\\" ,\\ " username \\" :\\ " \$ {aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.master_username }\\" ,\\ " password \\" :\\ " \$ {aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.master_password }\\" ,\\ " dbname \\" :\\ " \$ {aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.database_name }\\" ,\\ " port \\" :3306,\\ " database_url \\" :\\ " mysql :// \${aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.master_username}:\${aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.master_password}@\${aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.endpoint}:3306/\${aws_rds_cluster.testRDSCluster_rds_cluster_B5FD08B5.database_name}\\"}"
312+ }
313+ },
314+ " aws_security_group" : {
315+ " testRDSCluster_rds_security_group_4A9D257E" : {
316+ " description" : " Managed by Terraform" ,
317+ " egress" : [
318+ {
319+ " cidr_blocks" : [
320+ " 0.0.0.0/0"
321+ ],
322+ " description" : " required" ,
323+ " from_port" : 0 ,
324+ " ipv6_cidr_blocks" : [
325+ ],
326+ " prefix_list_ids" : [
327+ ],
328+ " protocol" : " -1" ,
329+ " security_groups" : [
330+ ],
331+ " self" : null ,
332+ " to_port" : 0
333+ }
334+ ],
335+ " ingress" : [
336+ {
337+ " cidr_blocks" : [
338+ " \$ {data.aws_vpc.testRDSCluster_vpc_F47EEEFE.cidr_block}"
339+ ],
340+ " description" : null ,
341+ " from_port" : 3306 ,
342+ " ipv6_cidr_blocks" : null ,
343+ " prefix_list_ids" : null ,
344+ " protocol" : " tcp" ,
345+ " security_groups" : null ,
346+ " self" : null ,
347+ " to_port" : 3306
348+ }
349+ ],
350+ " name_prefix" : " bowling-" ,
351+ " tags" : {
352+ " whodis" : " walter"
353+ },
354+ " vpc_id" : " \$ {data.aws_vpc.testRDSCluster_vpc_F47EEEFE.id}"
355+ }
356+ }
357+ }
358+ } "
359+ ` ;
0 commit comments