providers/aws: nat gateway id-only

This commit is contained in:
Mitchell Hashimoto 2016-04-20 17:16:37 -07:00
parent fc07b6315c
commit 10e4147d00
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
2 changed files with 10 additions and 8 deletions

View File

@ -16,9 +16,10 @@ func TestAccAWSNatGateway_basic(t *testing.T) {
var natGateway ec2.NatGateway
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckNatGatewayDestroy,
PreCheck: func() { testAccPreCheck(t) },
IDRefreshName: "aws_nat_gateway.gateway",
Providers: testAccProviders,
CheckDestroy: testAccCheckNatGatewayDestroy,
Steps: []resource.TestStep{
resource.TestStep{
Config: testAccNatGatewayConfig,

View File

@ -391,7 +391,8 @@ resource "aws_network_acl" "foos" {
from_port = 443
to_port = 443
}
subnet_id = "${aws_subnet.blob.id}"
subnet_ids = ["${aws_subnet.blob.id}"]
}
`
const testAccAWSNetworkAclIngressConfigChange = `
@ -416,7 +417,7 @@ resource "aws_network_acl" "foos" {
from_port = 0
to_port = 22
}
subnet_id = "${aws_subnet.blob.id}"
subnet_ids = ["${aws_subnet.blob.id}"]
}
`
@ -528,11 +529,11 @@ resource "aws_subnet" "new" {
}
resource "aws_network_acl" "roll" {
vpc_id = "${aws_vpc.foo.id}"
subnet_id = "${aws_subnet.new.id}"
subnet_ids = ["${aws_subnet.new.id}"]
}
resource "aws_network_acl" "bar" {
vpc_id = "${aws_vpc.foo.id}"
subnet_id = "${aws_subnet.old.id}"
subnet_ids = ["${aws_subnet.old.id}"]
}
`
@ -555,7 +556,7 @@ resource "aws_subnet" "new" {
}
resource "aws_network_acl" "bar" {
vpc_id = "${aws_vpc.foo.id}"
subnet_id = "${aws_subnet.new.id}"
subnet_ids = ["${aws_subnet.new.id}"]
}
`