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

AWS Provider Endpoints not working on 3.64.0 #21637

Closed
iamperson347 opened this issue Nov 4, 2021 · 6 comments · Fixed by #21639
Closed

AWS Provider Endpoints not working on 3.64.0 #21637

iamperson347 opened this issue Nov 4, 2021 · 6 comments · Fixed by #21639
Labels
bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
Milestone

Comments

@iamperson347
Copy link

iamperson347 commented Nov 4, 2021

Terraform CLI and Terraform AWS Provider Version

Terraform v1.0.1
on linux_amd64

  • provider registry.terraform.io/hashicorp/aws v3.64.0
  • provider registry.terraform.io/hashicorp/vault v2.24.1

Relates #21641

Affected Resource(s)

AWS Provider

Terraform Configuration Files

Sample configuration for AWS Provider that is failing (some values replaced with <value>:

provider "aws" {
  alias  = "<alias name>"
  region = "us-gov-west-1"
  assume_role {
    role_arn     = "<role arn>"
    session_name = "<session name>"
  }

  endpoints {
    firehose = "https://firehose-fips.us-gov-west-1.amazonaws.com"
    s3       = "https://s3-fips.us-gov-west-1.amazonaws.com"
    lambda   = "https://lambda-fips.us-gov-west-1.amazonaws.com"
  }
}

Expected Behavior

terraform plan/apply works with custom AWS Service Endpoints

Actual Behavior


│ Error: Unsupported argument

│ on providers.tf line 16, in provider "aws":
│ 16: firehose = "https://firehose-fips.us-gov-west-1.amazonaws.com"

│ An argument named "firehose" is not expected here.


│ Error: Unsupported argument

│ on providers.tf line 17, in provider "aws":
│ 17: s3 = "https://s3-fips.us-gov-west-1.amazonaws.com"

│ An argument named "s3" is not expected here.


│ Error: Unsupported argument

│ on providers.tf line 18, in provider "aws":
│ 18: lambda = "https://lambda-fips.us-gov-west-1.amazonaws.com"

│ An argument named "lambda" is not expected here.

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 4, 2021
@nickcaballero
Copy link

Same issue when using Terraform JSON format.

{
  "provider": {
    "aws": [
      {
        "access_key": "test",
        "secret_key": "test",
        "region": "us-east-1",
        "endpoints": [
          {
            "cognitoidentity": "http://10.108.188.101:8890",
            "cognitoidp": "http://10.108.188.101:8890",
            "s3": "http://10.105.167.158:4566",
            "secretsmanager": "http://10.105.167.158:4566",
            "sns": "http://10.105.167.158:4566",
            "sqs": "http://10.105.167.158:4566"
          }
        ]
      }
    ]
  }
}

@justinretzolk justinretzolk added bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. provider Pertains to the provider itself, rather than any interaction with AWS. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 4, 2021
@breathingdust
Copy link
Member

Thanks all for issue report and help in narrowing it down the root cause, we plan to do a point release shortly to resolve this. 👍

@YakDriver
Copy link
Member

@perryao Thank you for finding this. There is a test for custom endpoints (TestAccAcctestProvider_endpoints) but because the serviceData map was empty due to the issue you found, the test succeeded. Your fix plus additional repair will be in place shortly.

@github-actions github-actions bot added this to the v3.65.0 milestone Nov 4, 2021
@YakDriver YakDriver modified the milestones: v3.65.0, v3.64.1 Nov 4, 2021
@github-actions
Copy link

github-actions bot commented Nov 5, 2021

This functionality has been released in v3.64.1 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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 May 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants