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

[BUG] Error: error getting Service Quotas Service Quota (vpc/L-E79EC296): NoSuchResourceException #13075

Closed
ngortheone opened this issue Apr 28, 2020 · 5 comments
Assignees
Labels
service/servicequotas Issues and PRs that pertain to the servicequotas service.

Comments

@ngortheone
Copy link

Error: NoSuchResourceException is thrown when trying to adjust VPC security groups per Region quota

Other quotas seem to be working fine

$ terraform version                                                                                                                                       
       
Terraform v0.12.24
+ provider.aws v2.59.0

Code to reproduce

resource "aws_servicequotas_service_quota" "sgs_per_region" {
  service_code = "vpc"
  quota_code   = "L-E79EC296"
  value        = 3000
}

Such quota DOES exist

$ aws service-quotas list-aws-default-service-quotas --service-code vpc --region us-east-1 --query "Quotas[*]" --output table | grep L-E79EC296

k|  True      |  False       |  arn:aws:servicequotas:us-east-1::vpc/L-E79EC296 |  L-E79EC296 |  VPC security groups per Region               |  vpc         |  Amazon Virtual Private Cloud (Amazon VPC) |  None  |  2500.0   |

Full console output

$ terraform apply                                                                                    
module.limits.aws_servicequotas_service_quota.alb_per_region: Refreshing state... [id=elasticloadbalancing/L-53DA6B97]
module.limits.aws_servicequotas_service_quota.max_eip: Refreshing state... [id=ec2/L-0263D0A3]
module.limits.aws_servicequotas_service_quota.vpc_per_region: Refreshing state... [id=vpc/L-F678F1CE]

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # module.limits.aws_servicequotas_service_quota.sgs_per_region will be created
  + resource "aws_servicequotas_service_quota" "sgs_per_region" {
      + adjustable     = (known after apply)
      + arn            = (known after apply)
      + default_value  = (known after apply)
      + id             = (known after apply)
      + quota_code     = "L-E79EC296"
      + quota_name     = (known after apply)
      + request_id     = (known after apply)
      + request_status = (known after apply)
      + service_code   = "vpc"
      + service_name   = (known after apply)
      + value          = 3000
    }

Plan: 1 to add, 0 to change, 0 to destroy.


Warning: Resource targeting is in effect

You are creating a plan with the -target option, which means that the result
of this plan may not represent all of the changes requested by the current
configuration.

The -target option is not for routine use, and is provided only for
exceptional situations such as recovering from errors or mistakes, or when
Terraform specifically suggests to use it as part of an error message.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

module.limits.aws_servicequotas_service_quota.sgs_per_region: Creating...

Warning: Applied changes may be incomplete

The plan was created with the -target option in effect, so some changes
requested in the configuration may have been ignored and the output values may
not be fully updated. Run the following command to verify that no other
changes are pending:
    terraform plan

Note that the -target option is not suitable for routine use, and is provided
only for exceptional situations such as recovering from errors or mistakes, or
when Terraform specifically suggests to use it as part of an error message.


Error: error getting Service Quotas Service Quota (vpc/L-E79EC296): NoSuchResourceException:

  on ../../modules/account-limits/main.tf line 13, in resource "aws_servicequotas_service_quota" "sgs_per_region":
  13: resource "aws_servicequotas_service_quota" "sgs_per_region" {

Similar issues:

@ghost ghost added the service/servicequotas Issues and PRs that pertain to the servicequotas service. label Apr 28, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Apr 28, 2020
@ffreitas-te
Copy link

I'm hitting a similar error with globalaccelerator quota:

aws_servicequotas_service_quota.ga: Creating...

Error: error getting Service Quotas Service Quota (globalaccelerator/L-BE074EF3): NoSuchResourceException:

  on main.tf line 2, in resource "aws_servicequotas_service_quota" "ga":
   2: resource "aws_servicequotas_service_quota" "ga" {

@gdavison
Copy link
Contributor

gdavison commented Jun 9, 2021

@ffreitas-te even though Global Accelerator is available in many regions, the quota can only be accessed in the us-east-1 region.

$ aws service-quotas get-aws-default-service-quota --service-code globalaccelerator --quota-code L-BE074EF3 --region us-west-2

An error occurred (NoSuchResourceException) when calling the GetAWSDefaultServiceQuota operation: The request failed because the specified service does not exist.

$ aws service-quotas get-aws-default-service-quota --service-code globalaccelerator --quota-code L-BE074EF3 --region us-east-1
{
    "Quota": {
        "ServiceCode": "globalaccelerator",
        "ServiceName": "AWS Global Accelerator",
        "QuotaArn": "arn:aws:servicequotas:::globalaccelerator/L-BE074EF3",
        "QuotaCode": "L-BE074EF3",
        "QuotaName": "Accelerators per AWS account",
        "Value": 20.0,
        "Unit": "None",
        "Adjustable": true,
        "GlobalQuota": true
    }
}

If you still have problems when using us-east-1 please open a separate Issue

@gdavison
Copy link
Contributor

gdavison commented Jun 9, 2021

@ngortheone are you still seeing your error with a newer version of the provider? If so, can you submit the logs with debugging enabled? See https://www.terraform.io/docs/internals/debugging.html for instructions

@gdavison gdavison self-assigned this Jun 9, 2021
@gdavison gdavison added the waiting-response Maintainers are waiting on response from community or contributor. label Jun 9, 2021
@ngortheone
Copy link
Author

@gdavison I am no longer involved with the project that needed this so it is not easy for me to verify this (lack of free time). Sorry

@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Sep 28, 2021
@gdavison gdavison closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2023
@github-actions github-actions bot removed the waiting-response Maintainers are waiting on response from community or contributor. label Feb 3, 2023
@github-actions
Copy link

github-actions bot commented Mar 5, 2023

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/servicequotas Issues and PRs that pertain to the servicequotas service.
Projects
None yet
Development

No branches or pull requests

4 participants