provider/aws: format and randomize RDS Cluster Instance tests
This commit is contained in:
parent
a7af4c46b2
commit
a344204cc7
|
@ -2,11 +2,10 @@ package aws
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
|
||||||
|
|
||||||
|
"github.com/hashicorp/terraform/helper/acctest"
|
||||||
"github.com/hashicorp/terraform/helper/resource"
|
"github.com/hashicorp/terraform/helper/resource"
|
||||||
"github.com/hashicorp/terraform/terraform"
|
"github.com/hashicorp/terraform/terraform"
|
||||||
|
|
||||||
|
@ -126,9 +125,9 @@ resource "aws_rds_cluster" "default" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_rds_cluster_instance" "cluster_instances" {
|
resource "aws_rds_cluster_instance" "cluster_instances" {
|
||||||
identifier = "aurora-cluster-test-instance"
|
identifier = "tf-cluster-instance-%d"
|
||||||
cluster_identifier = "${aws_rds_cluster.default.id}"
|
cluster_identifier = "${aws_rds_cluster.default.id}"
|
||||||
instance_class = "db.r3.large"
|
instance_class = "db.r3.large"
|
||||||
}
|
}
|
||||||
|
|
||||||
`, rand.New(rand.NewSource(time.Now().UnixNano())).Int())
|
`, acctest.RandInt(), acctest.RandInt())
|
||||||
|
|
Loading…
Reference in New Issue