Skip to content

Commit

Permalink
Merge pull request #24340 from ianblenke/v4.10.0+increased_timeout
Browse files Browse the repository at this point in the history
Change 5 minute timeout to 60 minute timeout when creating security_group_rules
  • Loading branch information
ewbankkit authored Jul 22, 2022
2 parents a4a69ee + e7dbef3 commit f9496ea
Show file tree
Hide file tree
Showing 21 changed files with 3,673 additions and 4,266 deletions.
3 changes: 3 additions & 0 deletions .changelog/15011.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_security_group: Additional plan-time validation for `name` and `name_prefix`
```
3 changes: 3 additions & 0 deletions .changelog/24340.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_security_group_rule: Add configurable Create timeout
```
12 changes: 12 additions & 0 deletions internal/service/ec2/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,15 @@ func outsideIPAddressType_Values() []string {
OutsideIPAddressTypePublicIPv4,
}
}

const (
securityGroupRuleTypeEgress = "egress"
securityGroupRuleTypeIngress = "ingress"
)

func securityGroupRuleType_Values() []string {
return []string{
securityGroupRuleTypeEgress,
securityGroupRuleTypeIngress,
}
}
1 change: 1 addition & 0 deletions internal/service/ec2/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const (
errCodeInvalidFleetIdNotFound = "InvalidFleetId.NotFound"
errCodeInvalidFlowLogIdNotFound = "InvalidFlowLogId.NotFound"
errCodeInvalidGatewayIDNotFound = "InvalidGatewayID.NotFound"
errCodeInvalidGroupInUse = "InvalidGroup.InUse"
errCodeInvalidGroupNotFound = "InvalidGroup.NotFound"
errCodeInvalidHostIDNotFound = "InvalidHostID.NotFound"
errCodeInvalidInstanceIDNotFound = "InvalidInstanceID.NotFound"
Expand Down
8 changes: 4 additions & 4 deletions internal/service/ec2/vpc_default_network_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const (
)

func ResourceDefaultNetworkACL() *schema.Resource {
networkACLRuleSetSchema := &schema.Schema{
networkACLRuleSetNestedBlock := &schema.Schema{
Type: schema.TypeSet,
Optional: true,
Elem: networkACLRuleResource,
Elem: networkACLRuleNestedBlock,
Set: networkACLRuleHash,
}

Expand Down Expand Up @@ -60,8 +60,8 @@ func ResourceDefaultNetworkACL() *schema.Resource {
// We want explicit management of Rules here, so we do not allow them to be
// computed. Instead, an empty config will enforce just that; removal of the
// rules
"egress": networkACLRuleSetSchema,
"ingress": networkACLRuleSetSchema,
"egress": networkACLRuleSetNestedBlock,
"ingress": networkACLRuleSetNestedBlock,
"owner_id": {
Type: schema.TypeString,
Computed: true,
Expand Down
Loading

0 comments on commit f9496ea

Please sign in to comment.