Add an existing RDS server name ARN


I need some help I have created 4 files .tf. 2 files creates 2 different rds cluster instances. Other 2 files are creating two separate dms endpoints. 1. source 2. target endpoints respectively.

By following dms endpoint documentation: I have created the code but now want to get the server name or arn of the created RDSs. I want to do automation for my client. Can you help me on this?

Best Regards,


Hi @yaseenzafar,

would creating an output be sufficient for you use case?

output rds1 {
  value = aws_rds_cluster.db.arn

thanks @tbugfinder. Should i add this output module inside the resource module?

An output would be defined within the module outside of the resource definition though.

1 Like