We have to login as admin user
exceute below commands
EXEC rdsadmin.rdsadmin_util.rename_global_name(p_new_global_name => 'new_global_name');
We have to login as admin user
exceute below commands
EXEC rdsadmin.rdsadmin_util.rename_global_name(p_new_global_name => 'new_global_name');
##### remote-exec Provisioner demo
resource "aws_instance" "dev-instance" {
ami = "ami-05548f9cecf47b442"
instance_type = "t2.micro"
key_name = "pgsql_key"
connection {
type = "ssh"
user = "ec2-user"
private_key = file("./pgsql_key.pem")
host = self.public_ip
}
provisioner "remote-exec" {
inline = [
"sudo yum install -y mysql*"
]
}
}
Note: we can use existing key or generate new key
Error: invalid value for name (must only contain alphanumeric characters, hyphens, underscores, commas, periods, @ symbols, plus and equals signs)
Solutions : please check data type in associtaed variable block