Revert region to us-west-2 (and set us-west-2 as default region in acceptance test class)
This commit is contained in:
parent
979afcecdc
commit
73f20ec88d
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
func TestAccAWSOpsWorksStack_importBasic(t *testing.T) {
|
func TestAccAWSOpsWorksStack_importBasic(t *testing.T) {
|
||||||
oldvar := os.Getenv("AWS_DEFAULT_REGION")
|
oldvar := os.Getenv("AWS_DEFAULT_REGION")
|
||||||
os.Setenv("AWS_DEFAULT_REGION", "us-east-1")
|
os.Setenv("AWS_DEFAULT_REGION", "us-west-2")
|
||||||
defer os.Setenv("AWS_DEFAULT_REGION", oldvar)
|
defer os.Setenv("AWS_DEFAULT_REGION", oldvar)
|
||||||
|
|
||||||
name := acctest.RandString(10)
|
name := acctest.RandString(10)
|
||||||
|
|
|
@ -411,11 +411,11 @@ resource "aws_vpc" "tf-acc" {
|
||||||
resource "aws_subnet" "tf-acc" {
|
resource "aws_subnet" "tf-acc" {
|
||||||
vpc_id = "${aws_vpc.tf-acc.id}"
|
vpc_id = "${aws_vpc.tf-acc.id}"
|
||||||
cidr_block = "${aws_vpc.tf-acc.cidr_block}"
|
cidr_block = "${aws_vpc.tf-acc.cidr_block}"
|
||||||
availability_zone = "us-east-1a"
|
availability_zone = "us-west-2a"
|
||||||
}
|
}
|
||||||
resource "aws_opsworks_stack" "tf-acc" {
|
resource "aws_opsworks_stack" "tf-acc" {
|
||||||
name = "%s"
|
name = "%s"
|
||||||
region = "us-east-1"
|
region = "us-west-2"
|
||||||
vpc_id = "${aws_vpc.tf-acc.id}"
|
vpc_id = "${aws_vpc.tf-acc.id}"
|
||||||
default_subnet_id = "${aws_subnet.tf-acc.id}"
|
default_subnet_id = "${aws_subnet.tf-acc.id}"
|
||||||
service_role_arn = "${aws_iam_role.opsworks_service.arn}"
|
service_role_arn = "${aws_iam_role.opsworks_service.arn}"
|
||||||
|
|
Loading…
Reference in New Issue