mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(ec2): nest cidrBlockState in AssociateVpcCidrBlock response (#3243)
AssociateVpcCidrBlock returned cidrBlockState as a bare string instead of the nested <state> element that DescribeVpcs already returns for the same association. terraform-provider-aws's SDK waiter for aws_vpc_ipv4_cidr_block_association parses the nested shape, so it never observed a valid state and polled DescribeVpcs until giving up, hanging `terraform apply` on any secondary_cidr_blocks entry. Fixes #3241
This commit is contained in:
1 parent
eb3a6b23ef
commit
496b376da1
2 files changed
+66
-1
No files matched your search
@@ -2632,7 +2632,7 @@ public class Ec2QueryHandler {
|
||||
.start("cidrBlockAssociation")
|
||||
.elem("associationId", assoc.getAssociationId())
|
||||
.elem("cidrBlock", assoc.getCidrBlock())
|
||||
.elem("cidrBlockState", assoc.getCidrBlockState())
|
||||
.start("cidrBlockState").elem("state", assoc.getCidrBlockState()).end("cidrBlockState")
|
||||
.end("cidrBlockAssociation")
|
||||
.end("AssociateVpcCidrBlockResponse");
|
||||
return xmlResponse(xml.build());
|
||||
|
||||
Reference in new issue
Block a user