Revert region to us-west-2 (and set us-west-2 as default region in acceptance test class)

This commit is contained in:
DJ Home 2016-09-30 13:33:00 +01:00
parent 979afcecdc
commit 73f20ec88d
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import (
func TestAccAWSOpsWorksStack_importBasic(t *testing.T) {
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)
name := acctest.RandString(10)

View File

@ -411,11 +411,11 @@ resource "aws_vpc" "tf-acc" {
resource "aws_subnet" "tf-acc" {
vpc_id = "${aws_vpc.tf-acc.id}"
cidr_block = "${aws_vpc.tf-acc.cidr_block}"
availability_zone = "us-east-1a"
availability_zone = "us-west-2a"
}
resource "aws_opsworks_stack" "tf-acc" {
name = "%s"
region = "us-east-1"
region = "us-west-2"
vpc_id = "${aws_vpc.tf-acc.id}"
default_subnet_id = "${aws_subnet.tf-acc.id}"
service_role_arn = "${aws_iam_role.opsworks_service.arn}"