Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeouts block not working in 0.12.24 #17800

Closed
edwardpr23 opened this issue Feb 24, 2021 · 4 comments
Closed

timeouts block not working in 0.12.24 #17800

edwardpr23 opened this issue Feb 24, 2021 · 4 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@edwardpr23
Copy link

resource "aws_ec2_client_vpn_network_association" "vpn_network_association" {
count = length(var.subnet_ids)
client_vpn_endpoint_id = aws_ec2_client_vpn_endpoint.client_vpn_endpoint.id
....

timeouts {
create = "60m"
delete = "60m"
}
}

I get this error:

Error: Unsupported block type

on .terraform/modules/cvpn/okta_vpn_module/main.tf line 35, in resource "aws_ec2_client_vpn_network_association" "vpn_network_association":
35: timeouts {

Blocks of type "timeouts" are not expected here.

I thought timeouts are supported in Terraform resource. I'm using 0.12.24.. When I try to create the Client VPN Endpoint with multiple associations and routes, ,it simply times out and fails in Apply stage in Terraform though the actual resource gets created in AWS. But since Terraform apply stage fails, I presume the state file will not be in sync with the resource created.. This is so frustrating..
Any help in this matter will be really appreciated..

@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Feb 24, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 24, 2021
@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 24, 2021
@ewbankkit
Copy link
Contributor

@edwardpr23 Thanks for raising this issue.
The aws_ec2_client_vpn_network_association resource does not currently support custom timeouts.
I'll change this issue to a an enhancement request.

Related:

@lukeyeager
Copy link

@edwardpr23 try adding a depends_on from your route to your association: #16645 (comment). No more timeout issues for me.

@edwardpr23
Copy link
Author

Thanks for. the tips. But somehow when I tried the second time, it worked..

@ghost
Copy link

ghost commented Mar 28, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

No branches or pull requests

3 participants